Completed
Push — master ( 509c61...616fc2 )
by Vladimir
02:58
created
src/allejo/stakx/System/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/Twig/SelectFilter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@
 block discarded – undo
54 54
     private static function flatten(array $array)
55 55
     {
56 56
         $return = array();
57
-        array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; });
57
+        array_walk_recursive($array, function($a) use (&$return)
58
+        {
59
+$return[] = $a; });
58 60
         return $return;
59 61
     }
60 62
 }
61 63
\ No newline at end of file
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -237,9 +237,15 @@
 block discarded – undo
237 237
                 $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER)
238 238
             ))
239 239
             ->setIterator($fileExplorer->getExplorer())
240
-            ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); })
241
-            ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); })
242
-            ->addListener(Move::NAME,   function ($e) { $this->watchListenerFunction($e); })
240
+            ->addListener(Create::NAME, function ($e)
241
+            {
242
+$this->watchListenerFunction($e); })
243
+            ->addListener(Modify::NAME, function ($e)
244
+            {
245
+$this->watchListenerFunction($e); })
246
+            ->addListener(Move::NAME,   function ($e)
247
+            {
248
+$this->watchListenerFunction($e); })
243 249
         ;
244 250
 
245 251
         $this->output->writeln('Watch started successfully');
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/TrackingManager.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,9 @@
 block discarded – undo
300 300
          */
301 301
         foreach ($elements as &$item)
302 302
         {
303
-            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) { continue; }
303
+            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft())
304
+            {
305
+continue; }
304 306
 
305 307
             if (empty($item->getNamespace()))
306 308
             {
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/TableOfContentsFilter.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,22 +45,26 @@
 block discarded – undo
45 45
 
46 46
             sscanf($heading->getName(), 'h%u', $curr);
47 47
 
48
-            if (!($hMin <= $curr && $curr <= $hMax)) {
48
+            if (!($hMin <= $curr && $curr <= $hMax))
49
+            {
49 50
                 continue;
50 51
             }
51 52
 
52 53
             $headingID = $heading->attributes()->id;
53 54
 
54 55
             // If the current level is greater than the last level indent one level
55
-            if ($curr > $last) {
56
+            if ($curr > $last)
57
+            {
56 58
                 $toc .= '<ul>';
57 59
             }
58 60
             // If the current level is less than the last level go up appropriate amount.
59
-            elseif ($curr < $last) {
61
+            elseif ($curr < $last)
62
+            {
60 63
                 $toc .= str_repeat('</li></ul>', $last - $curr) . '</li>';
61 64
             }
62 65
             // If the current level is equal to the last.
63
-            else {
66
+            else
67
+            {
64 68
                 $toc .= '</li>';
65 69
             }
66 70
 
Please login to merge, or discard this patch.