Completed
Pull Request — master (#121)
by Vladimir
02:51 queued 01:05
created
src/allejo/stakx/Templating/Twig/Extension/OrderFilter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
             return $array;
20 20
         }
21 21
 
22
-        usort($array, function ($a, $b) use ($key, $order, $case_insensitive) {
22
+        usort($array, function ($a, $b) use ($key, $order, $case_insensitive)
23
+        {
23 24
             $aValue = __::get($a, $key);
24 25
             $bValue = __::get($b, $key);
25 26
 
Please login to merge, or discard this patch.
src/allejo/stakx/Event/PageViewDefinitionAdded.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @return string
30
+     * @return Folder
31 31
      */
32 32
     public function getFolder()
33 33
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Markup/SyntaxHighlighterTrait.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         // Exception thrown when language not supported
64 64
         catch (\DomainException $exception)
65 65
         {
66
-            trigger_error("An unsupported language (${langDef['language']}) was detected in a code block", E_USER_WARNING);
66
+            trigger_error("An unsupported language (${langdef['language']}) was detected in a code block", E_USER_WARNING);
67 67
         }
68 68
         catch (\Exception $e)
69 69
         {
Please login to merge, or discard this patch.
src/allejo/stakx/Server/WebServer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,8 @@
 block discarded – undo
62 62
     {
63 63
         $routes = Controller::create($routeMapper, $compiler);
64 64
 
65
-        return new Server(function (ServerRequestInterface $request) use ($routes, $compiler, $assetManager) {
65
+        return new Server(function (ServerRequestInterface $request) use ($routes, $compiler, $assetManager)
66
+        {
66 67
             $httpMethod = $request->getMethod();
67 68
             $urlPath = Controller::normalizeUrl($request->getUri()->getPath());
68 69
 
Please login to merge, or discard this patch.
src/allejo/stakx/Filesystem/FileExplorerMatcher.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,12 @@
 block discarded – undo
20 20
      */
21 21
     public static function modifiedAfter(\DateTime $time)
22 22
     {
23
-        return function ($file) use ($time) {
23
+        return function ($file) use ($time)
24
+        {
24 25
             /** @var File|Folder $file */
25 26
 
26
-            if ($file instanceof Folder) {
27
+            if ($file instanceof Folder)
28
+            {
27 29
                 return true;
28 30
             }
29 31
 
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,8 @@
 block discarded – undo
164 164
 
165 165
         Service::setRuntimeFlag(RuntimeStatus::USING_HIGHLIGHTER);
166 166
 
167
-        if ($this->getConfiguration()->isHighlighterUsingLineNumbers()) {
167
+        if ($this->getConfiguration()->isHighlighterUsingLineNumbers())
168
+        {
168 169
             Service::setRuntimeFlag(RuntimeStatus::USING_LINE_NUMBERS);
169 170
         }
170 171
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,13 +3,17 @@
 block discarded – undo
3 3
 require __DIR__ . "/../vendor/autoload.php";
4 4
 
5 5
 // The only deprecation warnings we need to ignore/handle are in PHP 7.4 so far
6
-if (PHP_VERSION_ID >= 70400) {
7
-    function customErrorHandler($errno, $errstr, $errfile, $errline) {
6
+if (PHP_VERSION_ID >= 70400)
7
+{
8
+    function customErrorHandler($errno, $errstr, $errfile, $errline)
9
+    {
8 10
         // We know about this deprecation warning exists and it's already been
9 11
         // fixed in the 2.x branch. For BC reasons in the 1.x branch, we'll
10 12
         // ignore this warning to let tests pass.
11
-        if ($errno === E_DEPRECATED) {
12
-            if ($errstr === "Function ReflectionType::__toString() is deprecated") {
13
+        if ($errno === E_DEPRECATED)
14
+        {
15
+            if ($errstr === "Function ReflectionType::__toString() is deprecated")
16
+            {
13 17
                 return true;
14 18
             }
15 19
         }
Please login to merge, or discard this patch.
src/allejo/stakx/AssetEngine/Sass/SassEngine.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -211,6 +211,9 @@
 block discarded – undo
211 211
         $this->configureSourceMap();
212 212
     }
213 213
 
214
+    /**
215
+     * @param string $content
216
+     */
214 217
     private function handleThemeImports(&$content)
215 218
     {
216 219
         if (($themeName = $this->configuration->getTheme()))
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
         if ($this->cacheDirectory)
200 200
         {
201 201
             $cacheOptions = [
202
-                'cacheDir' => (string) $this->cacheDirectory->getFilesystemPath(),
202
+                'cacheDir' => (string)$this->cacheDirectory->getFilesystemPath(),
203 203
                 'forceRefresh' => false,
204 204
             ];
205 205
         }
Please login to merge, or discard this patch.
tests/allejo/stakx/Test/PHPUnit_Stakx_TestCase.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -476,7 +476,8 @@
 block discarded – undo
476 476
 
477 477
         /** @var \ReflectionMethod $fxnToCall */
478 478
         $fxnToCall = \__::chain($fxns)
479
-            ->filter(function (\ReflectionMethod $fxn) use ($method) {
479
+            ->filter(function (\ReflectionMethod $fxn) use ($method)
480
+            {
480 481
                 return $fxn->getName() === $method;
481 482
             })
482 483
             ->get(0, null)
Please login to merge, or discard this patch.