Completed
Push — master ( 0c3733...9b1319 )
by Vladimir
02:41
created
src/Object/Website.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
         $this->pm->configureTwig($this->getConfiguration(), array(
140 140
             'safe'    => $this->safeMode,
141 141
             'globals' => array(
142
-                array('name' => 'site',        'value' => $this->getConfiguration()->getConfiguration()),
142
+                array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()),
143 143
                 array('name' => 'collections', 'value' => $this->cm->getCollections()),
144
-                array('name' => 'menu',        'value' => $this->pm->getSiteMenu()),
145
-                array('name' => 'pages',       'value' => $this->pm->getFlatPages()),
146
-                array('name' => 'data',        'value' => $this->dm->getDataItems())
144
+                array('name' => 'menu', 'value' => $this->pm->getSiteMenu()),
145
+                array('name' => 'pages', 'value' => $this->pm->getFlatPages()),
146
+                array('name' => 'data', 'value' => $this->dm->getDataItems())
147 147
             )
148 148
         ));
149 149
         $this->pm->compileAll();
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     /**
310 310
      * @return boolean
311 311
      */
312
-    public function isNoClean()
312
+    public function isNoClean ()
313 313
     {
314 314
         return $this->noClean;
315 315
     }
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     /**
318 318
      * @param boolean $noClean
319 319
      */
320
-    public function setNoClean($noClean)
320
+    public function setNoClean ($noClean)
321 321
     {
322 322
         $this->noClean = $noClean;
323 323
     }
Please login to merge, or discard this patch.
src/Manager/PageManager.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function setCollections (&$collections)
74 74
     {
75
-        if (empty($collections)) { return; }
75
+        if (empty($collections))
76
+        {
77
+return; }
76 78
 
77 79
         $this->collections = &$collections;
78 80
     }
@@ -132,7 +134,9 @@  discard block
 block discarded – undo
132 134
      */
133 135
     public function parsePageViews ($pageViewFolders)
134 136
     {
135
-        if (empty($pageViewFolders)) { return; }
137
+        if (empty($pageViewFolders))
138
+        {
139
+return; }
136 140
 
137 141
         /**
138 142
          * The name of the folder where PageViews are located
@@ -292,7 +296,8 @@  discard block
 block discarded – undo
292 296
         {
293 297
             $this->addToSiteMenu($pageView);
294 298
 
295
-            if (!empty($pageView->title)) {
299
+            if (!empty($pageView->title))
300
+            {
296 301
                 $this->flatPages[$pageView->title] = &$pageView;
297 302
             }
298 303
         }
@@ -539,7 +544,9 @@  discard block
 block discarded – undo
539 544
      */
540 545
     private function trackParentTwigTemplate ($template, &$pageView)
541 546
     {
542
-        if (!$this->tracking) { return; }
547
+        if (!$this->tracking)
548
+        {
549
+return; }
543 550
 
544 551
         /** @var Twig_Template $parent */
545 552
         $parent = $template->getParent(array());
Please login to merge, or discard this patch.