@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** @var Twig_Environment */ |
46 | 46 | private $twig; |
47 | 47 | |
48 | - public function __construct() |
|
48 | + public function __construct () |
|
49 | 49 | { |
50 | 50 | parent::__construct(); |
51 | 51 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * @param string|false $template |
57 | 57 | */ |
58 | - public function setRedirectTemplate($template) |
|
58 | + public function setRedirectTemplate ($template) |
|
59 | 59 | { |
60 | 60 | $this->redirectTemplate = $template; |
61 | 61 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * @param Folder $folder |
65 | 65 | */ |
66 | - public function setTargetFolder(Folder $folder) |
|
66 | + public function setTargetFolder (Folder $folder) |
|
67 | 67 | { |
68 | 68 | $this->folder = $folder; |
69 | 69 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param PageView[][] $pageViews |
73 | 73 | * @param PageView[] $pageViewsFlattened |
74 | 74 | */ |
75 | - public function setPageViews(array &$pageViews, array &$pageViewsFlattened) |
|
75 | + public function setPageViews (array &$pageViews, array &$pageViewsFlattened) |
|
76 | 76 | { |
77 | 77 | $this->pageViews = &$pageViews; |
78 | 78 | $this->pageViewsFlattened = &$pageViewsFlattened; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @since 0.1.0 |
89 | 89 | */ |
90 | - public function compileAll() |
|
90 | + public function compileAll () |
|
91 | 91 | { |
92 | 92 | foreach ($this->pageViewsFlattened as &$pageView) |
93 | 93 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @since 0.1.1 |
119 | 119 | */ |
120 | - private function compilePageView(&$pageView) |
|
120 | + private function compilePageView (&$pageView) |
|
121 | 121 | { |
122 | 122 | switch ($pageView->getType()) |
123 | 123 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @since 0.1.1 |
147 | 147 | */ |
148 | - private function compileStaticPageView(&$pageView) |
|
148 | + private function compileStaticPageView (&$pageView) |
|
149 | 149 | { |
150 | 150 | $targetFile = $pageView->getTargetFile(); |
151 | 151 | $output = $this->renderStaticPageView($pageView); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @since 0.1.1 |
163 | 163 | */ |
164 | - private function compileDynamicPageViews(&$pageView) |
|
164 | + private function compileDynamicPageViews (&$pageView) |
|
165 | 165 | { |
166 | 166 | $contentItems = $pageView->getContentItems(); |
167 | 167 | $template = $this->createTwigTemplate($pageView); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @since 0.1.1 |
185 | 185 | */ |
186 | - private function compileRepeaterPageViews(&$pageView) |
|
186 | + private function compileRepeaterPageViews (&$pageView) |
|
187 | 187 | { |
188 | 188 | $pageView->rewindPermalink(); |
189 | 189 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @param ContentItem $contentItem |
209 | 209 | */ |
210 | - public function compileContentItem(&$contentItem) |
|
210 | + public function compileContentItem (&$contentItem) |
|
211 | 211 | { |
212 | 212 | $pageView = $contentItem->getPageView(); |
213 | 213 | $template = $this->createTwigTemplate($pageView); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @since 0.1.1 |
234 | 234 | */ |
235 | - private function compileStandardRedirects(&$pageView) |
|
235 | + private function compileStandardRedirects (&$pageView) |
|
236 | 236 | { |
237 | 237 | $redirects = $pageView->getRedirects(); |
238 | 238 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * |
256 | 256 | * @since 0.1.1 |
257 | 257 | */ |
258 | - private function compileExpandedRedirects(&$pageView) |
|
258 | + private function compileExpandedRedirects (&$pageView) |
|
259 | 259 | { |
260 | 260 | $permalinks = $pageView->getRepeaterPermalinks(); |
261 | 261 | |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * |
294 | 294 | * @return string |
295 | 295 | */ |
296 | - private function renderRepeaterPageView(&$template, &$pageView, &$expandedValue) |
|
296 | + private function renderRepeaterPageView (&$template, &$pageView, &$expandedValue) |
|
297 | 297 | { |
298 | 298 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
299 | 299 | |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * |
320 | 320 | * @return string |
321 | 321 | */ |
322 | - private function renderDynamicPageView(&$template, &$pageView, &$contentItem) |
|
322 | + private function renderDynamicPageView (&$template, &$pageView, &$contentItem) |
|
323 | 323 | { |
324 | 324 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
325 | 325 | |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | * |
343 | 343 | * @return string |
344 | 344 | */ |
345 | - private function renderStaticPageView(&$pageView) |
|
345 | + private function renderStaticPageView (&$pageView) |
|
346 | 346 | { |
347 | 347 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
348 | 348 | |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * |
367 | 367 | * @return Twig_Template |
368 | 368 | */ |
369 | - private function createTwigTemplate(&$pageView) |
|
369 | + private function createTwigTemplate (&$pageView) |
|
370 | 370 | { |
371 | 371 | try |
372 | 372 | { |