@@ -72,7 +72,9 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -149,7 +152,9 @@ discard block |
||
| 149 | 152 | */ |
| 150 | 153 | public function parsePageViews ($pageViewFolders) |
| 151 | 154 | { |
| 152 | - if (empty($pageViewFolders)) { return; } |
|
| 155 | + if (empty($pageViewFolders)) |
|
| 156 | + { |
|
| 157 | +return; } |
|
| 153 | 158 | |
| 154 | 159 | /** |
| 155 | 160 | * The name of the folder where PageViews are located |
@@ -309,7 +314,8 @@ discard block |
||
| 309 | 314 | { |
| 310 | 315 | $this->addToSiteMenu($pageView); |
| 311 | 316 | |
| 312 | - if (!empty($pageView['title'])) { |
|
| 317 | + if (!empty($pageView['title'])) |
|
| 318 | + { |
|
| 313 | 319 | $this->flatPages[$pageView['title']] = $pageView->createJail(); |
| 314 | 320 | } |
| 315 | 321 | } |
@@ -553,7 +559,9 @@ discard block |
||
| 553 | 559 | */ |
| 554 | 560 | private function trackParentTwigTemplate ($template, &$pageView) |
| 555 | 561 | { |
| 556 | - if (!$this->tracking) { return; } |
|
| 562 | + if (!$this->tracking) |
|
| 563 | + { |
|
| 564 | +return; } |
|
| 557 | 565 | |
| 558 | 566 | /** @var Twig_Template $parent */ |
| 559 | 567 | $parent = $template->getParent(array()); |