diff --git a/Controller/ApiController.php b/Controller/ApiController.php
index 047d412..0ae0aa7 100755
--- a/Controller/ApiController.php
+++ b/Controller/ApiController.php
@@ -293,9 +293,7 @@ final class ApiController extends Controller
*/
private function createHistory(EditorDoc $doc) : EditorDocHistory
{
- $history = EditorDocHistory::createFromDoc($doc);
-
- return $history;
+ return EditorDocHistory::createFromDoc($doc);
}
/**
diff --git a/Theme/Backend/Components/Editor/inline-editor.tpl.php b/Theme/Backend/Components/Editor/inline-editor.tpl.php
index dfe9790..919575c 100755
--- a/Theme/Backend/Components/Editor/inline-editor.tpl.php
+++ b/Theme/Backend/Components/Editor/inline-editor.tpl.php
@@ -1,7 +1,7 @@
-
-
- plain) ? ' class="active"' : ''; ?>>
+
- plain) ? '' : ' class="active"'; ?>>
plain) ? ' checked' : ''; ?>>
@@ -17,7 +17,7 @@
-
plain) ? ' checked' : ''; ?>>
+
plain) ? '' : ' checked'; ?>>
= $this->renderPreview(); ?>
diff --git a/Theme/Backend/editor-single.tpl.php b/Theme/Backend/editor-single.tpl.php
index eff9860..2c431a0 100755
--- a/Theme/Backend/editor-single.tpl.php
+++ b/Theme/Backend/editor-single.tpl.php
@@ -35,7 +35,7 @@ echo $this->data['nav']->render(); ?>
= $doc->content; ?>
-
= !empty($tag->icon) ? '' : ''; ?>= $this->printHtml($tag->getL11n()); ?>
+
= empty($tag->icon) ? '' : ''; ?>= $this->printHtml($tag->getL11n()); ?>
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
index b904f0c..44438e2 100755
--- a/tests/Bootstrap.php
+++ b/tests/Bootstrap.php
@@ -381,7 +381,7 @@ function phpServe() : void
// Execute the command and store the process ID
$output = [];
- echo \sprintf('Starting server...') . \PHP_EOL;
+ echo 'Starting server...' . \PHP_EOL;
echo \sprintf(' Current directory: %s', \getcwd()) . \PHP_EOL;
echo \sprintf(' %s', $command);
\exec($command, $output);
@@ -406,7 +406,7 @@ function phpServe() : void
// Kill the web server when the process ends
\register_shutdown_function(function() use ($killCommand, $pid) : void {
- echo \PHP_EOL . \sprintf('Stopping server...') . \PHP_EOL;
+ echo \PHP_EOL . 'Stopping server...' . \PHP_EOL;
echo \sprintf(' %s - Killing process with ID %d', \date('r'), $pid) . \PHP_EOL;
\exec($killCommand . $pid);
});