Test Failed
Push — master ( 0e8283...90a3be )
by Alain
05:03
created
src/View/Exception/FailedToInstantiateView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * Bright Nucleus View Component.
4 4
  *
Please login to merge, or discard this patch.
src/View/ViewBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.