@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | class Compiler |
| 45 | 45 | { |
| 46 | - private string|false $redirectTemplate; |
|
| 46 | + private string | false $redirectTemplate; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * All the PageViews handled by this Compiler instance indexed by their file paths relative to the site root. |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * |
| 291 | 291 | * @throws TemplateErrorInterface |
| 292 | 292 | */ |
| 293 | - private function compileRepeaterPageView(RepeaterPageView &$pageView): void |
|
| 293 | + private function compileRepeaterPageView(RepeaterPageView & $pageView): void |
|
| 294 | 294 | { |
| 295 | 295 | $template = $this->createTwigTemplate($pageView); |
| 296 | 296 | $permalinks = $pageView->getRepeaterPermalinks(); |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * |
| 332 | 332 | * @since 0.1.1 |
| 333 | 333 | */ |
| 334 | - private function compileStandardRedirects(PermalinkDocument &$pageView): void |
|
| 334 | + private function compileStandardRedirects(PermalinkDocument & $pageView): void |
|
| 335 | 335 | { |
| 336 | 336 | $redirects = $pageView->getRedirects(); |
| 337 | 337 | |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | * |
| 363 | 363 | * @since 0.1.1 |
| 364 | 364 | */ |
| 365 | - private function compileExpandedRedirects(RepeaterPageView &$pageView): void |
|
| 365 | + private function compileExpandedRedirects(RepeaterPageView & $pageView): void |
|
| 366 | 366 | { |
| 367 | 367 | $permalinks = $pageView->getRepeaterPermalinks(); |
| 368 | 368 | |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | * |
| 402 | 402 | * @since 0.1.1 |
| 403 | 403 | */ |
| 404 | - private function buildRepeaterPageViewHTML(TemplateInterface &$template, RepeaterPageView &$pageView, ExpandedValue &$expandedValue): string |
|
| 404 | + private function buildRepeaterPageViewHTML(TemplateInterface & $template, RepeaterPageView & $pageView, ExpandedValue & $expandedValue): string |
|
| 405 | 405 | { |
| 406 | 406 | $defaultContext = [ |
| 407 | 407 | 'this' => $pageView->createJail(), |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | * |
| 432 | 432 | * @since 0.1.1 |
| 433 | 433 | */ |
| 434 | - private function buildDynamicPageViewHTML(TemplateInterface &$template, CollectableItem|TemplateReadyDocument &$twigItem): string |
|
| 434 | + private function buildDynamicPageViewHTML(TemplateInterface & $template, CollectableItem | TemplateReadyDocument & $twigItem): string |
|
| 435 | 435 | { |
| 436 | 436 | $defaultContext = [ |
| 437 | 437 | 'this' => $twigItem->createJail(), |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | * |
| 459 | 459 | * @throws TemplateErrorInterface |
| 460 | 460 | */ |
| 461 | - private function buildStaticPageViewHTML(StaticPageView &$pageView): string |
|
| 461 | + private function buildStaticPageViewHTML(StaticPageView & $pageView): string |
|
| 462 | 462 | { |
| 463 | 463 | $defaultContext = [ |
| 464 | 464 | 'this' => $pageView->createJail(), |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | * |
| 487 | 487 | * @throws TemplateErrorInterface |
| 488 | 488 | */ |
| 489 | - private function createTwigTemplate(BasePageView &$pageView): TemplateInterface |
|
| 489 | + private function createTwigTemplate(BasePageView & $pageView): TemplateInterface |
|
| 490 | 490 | { |
| 491 | 491 | try { |
| 492 | 492 | $template = $this->templateBridge->createTemplate($pageView->getContent()); |