@@ -139,11 +139,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -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 | } |
@@ -132,7 +134,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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()); |