@@ -15,7 +15,7 @@ |
||
15 | 15 | /** @var PageView */ |
16 | 16 | private $siteMenu; |
17 | 17 | |
18 | - public function __construct() |
|
18 | + public function __construct () |
|
19 | 19 | { |
20 | 20 | parent::__construct(); |
21 | 21 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * PageManager constructor |
51 | 51 | */ |
52 | - public function __construct() |
|
52 | + public function __construct () |
|
53 | 53 | { |
54 | 54 | parent::__construct(); |
55 | 55 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * {@inheritdoc} |
147 | 147 | */ |
148 | - public function isTracked($filePath) |
|
148 | + public function isTracked ($filePath) |
|
149 | 149 | { |
150 | 150 | return (parent::isTracked($filePath) || isset($this->twigExtendsDeps[$filePath])); |
151 | 151 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * {@inheritdoc} |
163 | 163 | */ |
164 | - protected function handleTrackableItem($filePath, $options = array()) |
|
164 | + protected function handleTrackableItem ($filePath, $options = array()) |
|
165 | 165 | { |
166 | 166 | $pageView = PageView::create($filePath); |
167 | 167 | $namespace = $pageView->getType(); |
@@ -100,7 +100,9 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function parsePageViews ($pageViewFolders) |
102 | 102 | { |
103 | - if (empty($pageViewFolders)) { return; } |
|
103 | + if (empty($pageViewFolders)) |
|
104 | + { |
|
105 | +return; } |
|
104 | 106 | |
105 | 107 | /** |
106 | 108 | * The name of the folder where PageViews are located |
@@ -211,7 +213,9 @@ discard block |
||
211 | 213 | */ |
212 | 214 | private function handleTrackableStaticPageView ($pageView) |
213 | 215 | { |
214 | - if (empty($pageView['title'])) { return; } |
|
216 | + if (empty($pageView['title'])) |
|
217 | + { |
|
218 | +return; } |
|
215 | 219 | |
216 | 220 | $this->flatPages[$pageView['title']] = $pageView; |
217 | 221 | } |
@@ -156,11 +156,11 @@ discard block |
||
156 | 156 | $twigEnv->configureTwig($this->getConfiguration(), array( |
157 | 157 | 'safe' => $this->safeMode, |
158 | 158 | 'globals' => array( |
159 | - array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()), |
|
159 | + array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()), |
|
160 | 160 | array('name' => 'collections', 'value' => $this->cm->getJailedCollections()), |
161 | - array('name' => 'menu', 'value' => $this->mm->getSiteMenu()), |
|
162 | - array('name' => 'pages', 'value' => $this->pm->getJailedStaticPages()), |
|
163 | - array('name' => 'data', 'value' => $this->dm->getDataItems()) |
|
161 | + array('name' => 'menu', 'value' => $this->mm->getSiteMenu()), |
|
162 | + array('name' => 'pages', 'value' => $this->pm->getJailedStaticPages()), |
|
163 | + array('name' => 'data', 'value' => $this->dm->getDataItems()) |
|
164 | 164 | ) |
165 | 165 | )); |
166 | 166 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | /** |
334 | 334 | * @return boolean |
335 | 335 | */ |
336 | - public function isNoClean() |
|
336 | + public function isNoClean () |
|
337 | 337 | { |
338 | 338 | return $this->noClean; |
339 | 339 | } |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | /** |
342 | 342 | * @param boolean $noClean |
343 | 343 | */ |
344 | - public function setNoClean($noClean) |
|
344 | + public function setNoClean ($noClean) |
|
345 | 345 | { |
346 | 346 | $this->noClean = $noClean; |
347 | 347 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** @var Twig_Environment */ |
42 | 42 | private $twig; |
43 | 43 | |
44 | - public function __construct() |
|
44 | + public function __construct () |
|
45 | 45 | { |
46 | 46 | parent::__construct(); |
47 | 47 |