Completed
Push — master ( 2fc7ef...2c7029 )
by Vladimir
07:48
created
src/allejo/stakx/Filesystem/FileExplorer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,8 @@
 block discarded – undo
203 203
             }
204 204
 
205 205
             if (strpos($haystack, $query, $offset) !== false)
206
-            { // stop on first true result
206
+            {
207
+// stop on first true result
207 208
                 return true;
208 209
             }
209 210
         }
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/DataManager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,8 @@
 block discarded – undo
63 63
      */
64 64
     public function getJailedDataItems()
65 65
     {
66
-        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) {
66
+        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem)
67
+        {
67 68
             return $dataItem->getBasename();
68 69
         });
69 70
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/TableOfContentsFilter.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,14 +55,20 @@
 block discarded – undo
55 55
 
56 56
             $headingID = $heading->attributes->getNamedItem('id');
57 57
 
58
-            if ($curr > $last) // If the current level is greater than the last level indent one level
58
+            if ($curr > $last)
59
+            {
60
+                // If the current level is greater than the last level indent one level
59 61
             {
60 62
                 $toc .= '<ul>';
61 63
             }
62
-            elseif ($curr < $last) // If the current level is less than the last level go up appropriate amount.
64
+            }
65
+            elseif ($curr < $last)
66
+            {
67
+                // If the current level is less than the last level go up appropriate amount.
63 68
             {
64 69
                 $toc .= str_repeat('</li></ul>', $last - $curr) . '</li>';
65 70
             }
71
+            }
66 72
             else // If the current level is equal to the last.
67 73
             {
68 74
                 $toc .= '</li>';
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/OrderFilter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
             return $array;
19 19
         }
20 20
 
21
-        usort($array, function ($a, $b) use ($key, $order) {
21
+        usort($array, function ($a, $b) use ($key, $order)
22
+        {
22 23
             $aValue = __::get($a, $key);
23 24
             $bValue = __::get($b, $key);
24 25
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/CollectionManager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,8 @@
 block discarded – undo
105 105
      */
106 106
     public function getJailedCollections()
107 107
     {
108
-        return self::getJailedTrackedItems($this->trackedItemsFlattened, function ($contentItem) {
108
+        return self::getJailedTrackedItems($this->trackedItemsFlattened, function ($contentItem)
109
+        {
109 110
             return $contentItem['basename'];
110 111
         });
111 112
     }
Please login to merge, or discard this patch.
src/allejo/stakx/AssetEngine/Sass/Compiler.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@
 block discarded – undo
60 60
      */
61 61
     public function clearImportCache($file = null)
62 62
     {
63
-        if ($file === null) {
63
+        if ($file === null)
64
+        {
64 65
             $this->importCache = [];
65 66
             return;
66 67
         }
Please login to merge, or discard this patch.
src/allejo/stakx/Server/Controller.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function staticPageViewAction(StaticPageView $pageView, Compiler $compiler)
46 46
     {
47
-        return function () use ($pageView, $compiler) {
47
+        return function () use ($pageView, $compiler)
48
+        {
48 49
             Service::setOption('currentTemplate', $pageView->getAbsoluteFilePath());
49 50
 
50 51
             $compiler->getTemplateBridge()->clearTemplateCache();
@@ -74,7 +75,8 @@  discard block
 block discarded – undo
74 75
      */
75 76
     private function dynamicPageViewAction(DynamicPageView $pageView, Compiler $compiler)
76 77
     {
77
-        return function (ServerRequestInterface $request) use ($pageView, $compiler) {
78
+        return function (ServerRequestInterface $request) use ($pageView, $compiler)
79
+        {
78 80
             Service::setOption('currentTemplate', $pageView->getAbsoluteFilePath());
79 81
 
80 82
             $compiler->getTemplateBridge()->clearTemplateCache();
@@ -110,7 +112,8 @@  discard block
 block discarded – undo
110 112
      */
111 113
     private function repeaterPageViewAction(RepeaterPageView $pageView, Compiler $compiler)
112 114
     {
113
-        return function (ServerRequestInterface $request) use ($pageView, $compiler) {
115
+        return function (ServerRequestInterface $request) use ($pageView, $compiler)
116
+        {
114 117
             Service::setOption('currentTemplate', $pageView->getAbsoluteFilePath());
115 118
 
116 119
             $compiler->getTemplateBridge()->clearTemplateCache();
@@ -153,7 +156,8 @@  discard block
 block discarded – undo
153 156
                 return $this->repeaterPageViewAction($pageView, $compiler);
154 157
 
155 158
             default:
156
-                return function () {
159
+                return function ()
160
+                {
157 161
                     $errMsg = 'This URL type has not yet been implemented.';
158 162
 
159 163
                     return new Response(501, ['Content-Type' => 'text/plain'], $errMsg);
@@ -194,7 +198,8 @@  discard block
 block discarded – undo
194 198
     {
195 199
         self::$baseUrl = $router->getBaseUrl();
196 200
 
197
-        return \FastRoute\simpleDispatcher(function (RouteCollector $r) use ($router, $compiler) {
201
+        return \FastRoute\simpleDispatcher(function (RouteCollector $r) use ($router, $compiler)
202
+        {
198 203
             $dispatcher = new Controller();
199 204
 
200 205
             foreach ($router->getRouteMapping() as $route => $pageView)
Please login to merge, or discard this patch.
src/allejo/stakx/Server/WebServer.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $dispatcher = Controller::create($router, $compiler);
61 61
 
62
-        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher, $compiler) {
62
+        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher, $compiler)
63
+        {
63 64
             $httpMethod = $request->getMethod();
64 65
             $urlPath = Controller::normalizeUrl($request->getUri()->getPath());
65 66
 
@@ -77,7 +78,8 @@  discard block
 block discarded – undo
77 78
                 case Dispatcher::FOUND:
78 79
                     $urlPlaceholders = isset($routeInfo[2]) ? $routeInfo[2] : [];
79 80
 
80
-                    try {
81
+                    try
82
+                    {
81 83
                         return $routeInfo[1]($request, ...array_values($urlPlaceholders));
82 84
                     }
83 85
                     catch (\Exception $e)
Please login to merge, or discard this patch.