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.
src/allejo/stakx/Object/Website.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
         $this->pm->configureTwig($this->getConfiguration(), array(
149 149
             'safe'    => $this->safeMode,
150 150
             'globals' => array(
151
-                array('name' => 'site',        'value' => $this->getConfiguration()->getConfiguration()),
151
+                array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()),
152 152
                 array('name' => 'collections', 'value' => $this->cm->getJailedCollections()),
153
-                array('name' => 'menu',        'value' => $this->mm->getSiteMenu()),
154
-                array('name' => 'pages',       'value' => $this->pm->getJailedStaticPages()),
155
-                array('name' => 'data',        'value' => $this->dm->getDataItems())
153
+                array('name' => 'menu', 'value' => $this->mm->getSiteMenu()),
154
+                array('name' => 'pages', 'value' => $this->pm->getJailedStaticPages()),
155
+                array('name' => 'data', 'value' => $this->dm->getDataItems())
156 156
             )
157 157
         ));
158 158
         $this->pm->compileAll();
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     /**
319 319
      * @return boolean
320 320
      */
321
-    public function isNoClean()
321
+    public function isNoClean ()
322 322
     {
323 323
         return $this->noClean;
324 324
     }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     /**
327 327
      * @param boolean $noClean
328 328
      */
329
-    public function setNoClean($noClean)
329
+    public function setNoClean ($noClean)
330 330
     {
331 331
         $this->noClean = $noClean;
332 332
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/MenuManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /** @var PageView */
16 16
     private $siteMenu;
17 17
 
18
-    public function __construct()
18
+    public function __construct ()
19 19
     {
20 20
         parent::__construct();
21 21
 
Please login to merge, or discard this patch.