@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | if (isset($contextObject['active'])) { |
135 | - return (bool)$contextObject['active']; |
|
135 | + return (bool) $contextObject['active']; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | return true; |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | if ($route->getRouteOptionsIdent()) { |
453 | 453 | $loader->addFilter('route_options_ident', $route->getRouteOptionsIdent()); |
454 | 454 | } else { |
455 | - $loader->addFilter('route_options_ident', '', [ 'operator' => 'IS NULL' ]); |
|
455 | + $loader->addFilter('route_options_ident', '', ['operator' => 'IS NULL']); |
|
456 | 456 | } |
457 | 457 | |
458 | 458 | return $loader->load()->first(); |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | if (isset($available[$code])) { |
524 | 524 | $locale = $available[$code]; |
525 | 525 | if (isset($locale['locales'])) { |
526 | - $choices = (array)$locale['locales']; |
|
526 | + $choices = (array) $locale['locales']; |
|
527 | 527 | array_push($locales, ...$choices); |
528 | 528 | } elseif (isset($locale['locale'])) { |
529 | 529 | array_push($locales, $locale['locale']); |
@@ -90,8 +90,8 @@ |
||
90 | 90 | return $response->withStatus(404); |
91 | 91 | } |
92 | 92 | |
93 | - $templateIdent = (string)$event['templateIdent']; |
|
94 | - $templateController = (string)$event['templateIdent']; |
|
93 | + $templateIdent = (string) $event['templateIdent']; |
|
94 | + $templateController = (string) $event['templateIdent']; |
|
95 | 95 | |
96 | 96 | if (!$templateController) { |
97 | 97 | $container['logger']->warning(sprintf( |
@@ -91,8 +91,8 @@ |
||
91 | 91 | return $response->withStatus(404); |
92 | 92 | } |
93 | 93 | |
94 | - $templateIdent = (string)$section['templateIdent']; |
|
95 | - $templateController = (string)$section['templateIdent']; |
|
94 | + $templateIdent = (string) $section['templateIdent']; |
|
95 | + $templateController = (string) $section['templateIdent']; |
|
96 | 96 | |
97 | 97 | if (!$templateController) { |
98 | 98 | $container['logger']->warning(sprintf( |
@@ -90,8 +90,8 @@ |
||
90 | 90 | return $response->withStatus(404); |
91 | 91 | } |
92 | 92 | |
93 | - $templateIdent = (string)$news['templateIdent']; |
|
94 | - $templateController = (string)$news['templateIdent']; |
|
93 | + $templateIdent = (string) $news['templateIdent']; |
|
94 | + $templateController = (string) $news['templateIdent']; |
|
95 | 95 | |
96 | 96 | if (!$templateController) { |
97 | 97 | $container['logger']->warning(sprintf( |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function routes() |
85 | 85 | { |
86 | - return function ($arg) { |
|
86 | + return function($arg) { |
|
87 | 87 | return $this->sectionLoader()->resolveRoute($arg); |
88 | 88 | }; |
89 | 89 | } |
@@ -185,10 +185,10 @@ discard block |
||
185 | 185 | $documents = $section->getAttachments('document'); |
186 | 186 | |
187 | 187 | return [ |
188 | - 'title' => (string)$section->title(), |
|
189 | - 'summary' => (string)$section->summary(), |
|
190 | - 'image' => (string)$section->image(), |
|
191 | - 'content' => (string)$section->content(), |
|
188 | + 'title' => (string) $section->title(), |
|
189 | + 'summary' => (string) $section->summary(), |
|
190 | + 'image' => (string) $section->image(), |
|
191 | + 'content' => (string) $section->content(), |
|
192 | 192 | 'contentBlocks' => $contentBlocks, |
193 | 193 | 'gallery' => $gallery, |
194 | 194 | 'documents' => $documents |