Completed
Pull Request — master (#31)
by Vladimir
02:41
created
src/Twig/BaseUrlFunction.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,12 @@
 block discarded – undo
10 10
     {
11 11
         $globals = $env->getGlobals();
12 12
 
13
-        if (is_array($assetPath) || ($assetPath instanceof \ArrayAccess)) {
13
+        if (is_array($assetPath) || ($assetPath instanceof \ArrayAccess))
14
+        {
14 15
             $assetPath = $assetPath['permalink'];
15 16
         }
16
-        else if (is_null($assetPath)) {
17
+        else if (is_null($assetPath))
18
+        {
17 19
             $assetPath = '/';
18 20
         }
19 21
 
Please login to merge, or discard this patch.
src/Manager/PageManager.php 1 patch
Braces   +13 added lines, -5 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
     }
@@ -123,7 +125,8 @@  discard block
 block discarded – undo
123 125
     {
124 126
         static $jailedMenu = array();
125 127
 
126
-        if (!empty($jailedMenu)) {
128
+        if (!empty($jailedMenu))
129
+        {
127 130
             return $jailedMenu;
128 131
         }
129 132
 
@@ -143,7 +146,9 @@  discard block
 block discarded – undo
143 146
      */
144 147
     public function parsePageViews ($pageViewFolders)
145 148
     {
146
-        if (empty($pageViewFolders)) { return; }
149
+        if (empty($pageViewFolders))
150
+        {
151
+return; }
147 152
 
148 153
         /**
149 154
          * The name of the folder where PageViews are located
@@ -303,7 +308,8 @@  discard block
 block discarded – undo
303 308
         {
304 309
             $this->addToSiteMenu($pageView);
305 310
 
306
-            if (!empty($pageView->title)) {
311
+            if (!empty($pageView->title))
312
+            {
307 313
                 $this->flatPages[$pageView->title] = $pageView->createJail();
308 314
             }
309 315
         }
@@ -550,7 +556,9 @@  discard block
 block discarded – undo
550 556
      */
551 557
     private function trackParentTwigTemplate ($template, &$pageView)
552 558
     {
553
-        if (!$this->tracking) { return; }
559
+        if (!$this->tracking)
560
+        {
561
+return; }
554 562
 
555 563
         /** @var Twig_Template $parent */
556 564
         $parent = $template->getParent(array());
Please login to merge, or discard this patch.