@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $matcher = new UrlMatcher($routeCollection, new RequestContext()); |
| 29 | 29 | $matchingRoute = $matcher->match($this->filter); |
| 30 | 30 | |
| 31 | - $filteredConfiguration = array_filter($parsedConfiguration, function ($key) use ($matchingRoute) { |
|
| 31 | + $filteredConfiguration = array_filter($parsedConfiguration, function($key) use ($matchingRoute) { |
|
| 32 | 32 | return $key === $matchingRoute['_route']; |
| 33 | 33 | }, ARRAY_FILTER_USE_KEY); |
| 34 | 34 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $this->setTwigRule(); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - public static function make(string $templateDirectory, ?string $renderer = 'twig'): RendererFactory |
|
| 21 | + public static function make(string $templateDirectory, ?string $renderer = 'twig') : RendererFactory |
|
| 22 | 22 | { |
| 23 | 23 | return new self($templateDirectory, $renderer); |
| 24 | 24 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | private function setTwigRule(): void |
| 40 | 40 | { |
| 41 | - $this->setRule(TwigRenderer::class, function ($value) { |
|
| 41 | + $this->setRule(TwigRenderer::class, function($value) { |
|
| 42 | 42 | if ($value === 'twig') { |
| 43 | 43 | return TwigRenderer::make($this->templateDirectory); |
| 44 | 44 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | public function __construct(array $adapterConfiguration, VariableParser $variableParser) |
| 17 | 17 | { |
| 18 | - if (! $this->isValid($adapterConfiguration)) { |
|
| 18 | + if (!$this->isValid($adapterConfiguration)) { |
|
| 19 | 19 | throw InvalidConfiguration::invalidAdapterConfiguration('collection', '`variable` and `parameter`'); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | return is_array($subject) && isset($subject['variable']) && isset($subject['parameter']); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - protected function getEntries($pageConfiguration): ?array |
|
| 51 | + protected function getEntries($pageConfiguration): ? array |
|
| 52 | 52 | { |
| 53 | 53 | $variable = $pageConfiguration['variables'][$this->variable] ?? null; |
| 54 | 54 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | $fs = new Filesystem(); |
| 14 | 14 | |
| 15 | - if (! $fs->exists($templateDirectory)) { |
|
| 15 | + if (!$fs->exists($templateDirectory)) { |
|
| 16 | 16 | $fs->mkdir($templateDirectory); |
| 17 | 17 | } |
| 18 | 18 | |