@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Bright Nucleus View Component. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /** |
3 | 3 | * Bright Nucleus View Component. |
4 | 4 | * |
@@ -205,10 +205,10 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function scanLocations(array $criteria) |
207 | 207 | { |
208 | - $uris = $this->locations->map(function ($location) use ($criteria) { |
|
208 | + $uris = $this->locations->map(function($location) use ($criteria) { |
|
209 | 209 | /** @var Location $location */ |
210 | 210 | return $location->getURI($criteria); |
211 | - })->filter(function ($uri) { |
|
211 | + })->filter(function($uri) { |
|
212 | 212 | return false !== $uri; |
213 | 213 | }); |
214 | 214 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | $type = $type($uri, $engine); |
265 | 265 | } |
266 | 266 | |
267 | - if (! $type instanceof View) { |
|
267 | + if ( ! $type instanceof View) { |
|
268 | 268 | throw new FailedToInstantiateView( |
269 | 269 | sprintf( |
270 | 270 | _('Could not instantiate view "%s".'), |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | protected function getConfig($config = []): ConfigInterface |
289 | 289 | { |
290 | - $defaults = ConfigFactory::create(dirname(__DIR__, 2) . '/config/defaults.php', $config); |
|
290 | + $defaults = ConfigFactory::create(dirname(__DIR__, 2).'/config/defaults.php', $config); |
|
291 | 291 | $config = $config |
292 | 292 | ? ConfigFactory::createFromArray(array_merge_recursive($defaults->getArrayCopy(), $config->getArrayCopy())) |
293 | 293 | : $defaults; |