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.
src/Object/JailObject.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * {@inheritdoc}
105 105
      */
106
-    public function offsetExists($offset)
106
+    public function offsetExists ($offset)
107 107
     {
108 108
         return $this->object->offsetExists($offset);
109 109
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * {@inheritdoc}
113 113
      */
114
-    public function offsetGet($offset)
114
+    public function offsetGet ($offset)
115 115
     {
116 116
         return $this->object->offsetGet($offset);
117 117
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * {@inheritdoc}
121 121
      */
122
-    public function offsetSet($offset, $value)
122
+    public function offsetSet ($offset, $value)
123 123
     {
124 124
         return $this->object->offsetSet($offset, $value);
125 125
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * {@inheritdoc}
129 129
      */
130
-    public function offsetUnset($offset)
130
+    public function offsetUnset ($offset)
131 131
     {
132 132
         return $this->object->offsetUnset($offset);
133 133
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             return $this->object->$name;
89 89
         }
90 90
 
91
-        return NULL;
91
+        return null;
92 92
     }
93 93
 
94 94
     public function coreInstanceOf ($class)
Please login to merge, or discard this patch.