Completed
Pull Request — master (#41)
by Vladimir
02:29
created
src/allejo/stakx/Manager/PageManager.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use allejo\stakx\FrontMatter\ExpandedValue;
13 13
 use allejo\stakx\Object\ContentItem;
14 14
 use allejo\stakx\Object\DynamicPageView;
15
-use allejo\stakx\Object\JailObject;
16 15
 use allejo\stakx\Object\PageView;
17 16
 use allejo\stakx\Object\RepeaterPageView;
18 17
 use allejo\stakx\System\FileExplorer;
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,7 +150,9 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function parsePageViews ($pageViewFolders)
152 152
     {
153
-        if (empty($pageViewFolders)) { return; }
153
+        if (empty($pageViewFolders))
154
+        {
155
+return; }
154 156
 
155 157
         /**
156 158
          * The name of the folder where PageViews are located
@@ -332,7 +334,9 @@  discard block
 block discarded – undo
332 334
      */
333 335
     private function handleTrackableStaticPageView ($pageView)
334 336
     {
335
-        if (empty($pageView['title'])) { return; }
337
+        if (empty($pageView['title']))
338
+        {
339
+return; }
336 340
 
337 341
         $this->flatPages[$pageView['title']] = $pageView;
338 342
     }
@@ -548,7 +552,9 @@  discard block
 block discarded – undo
548 552
      */
549 553
     private function trackParentTwigTemplate ($template, &$pageView)
550 554
     {
551
-        if (!$this->tracking) { return; }
555
+        if (!$this->tracking)
556
+        {
557
+return; }
552 558
 
553 559
         /** @var Twig_Template $parent */
554 560
         $parent = $template->getParent(array());
Please login to merge, or discard this patch.