Test Failed
Push — master ( 90a3be...261c05 )
by Alain
06:34
created
src/View/Engine/PHPEngine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getRenderCallback(string $uri, array $context = []): callable
59 59
     {
60
-        if (! is_readable($uri)) {
60
+        if ( ! is_readable($uri)) {
61 61
             throw new FailedToLoadView(
62 62
                 sprintf(
63 63
                     _('The View URI "%1$s" is not accessible or readable.'),
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             );
67 67
         }
68 68
 
69
-        $closure = function () use ($uri, $context) {
69
+        $closure = function() use ($uri, $context) {
70 70
 
71 71
             // Save current buffering level so we can backtrack in case of an error.
72 72
             // This is needed because the view itself might also add an unknown number of output buffering levels.
Please login to merge, or discard this patch.
src/View/Location/FilesystemLocation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,12 +124,12 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $names = [];
126 126
 
127
-        $names[] = array_map(function ($criterion) use ($extension) {
127
+        $names[] = array_map(function($criterion) use ($extension) {
128 128
             $criterion = URIHelper::getFilename($criterion);
129 129
 
130 130
             return empty($extension) || URIHelper::hasExtension($criterion, $extension)
131 131
                 ? $criterion
132
-                : $criterion . $extension;
132
+                : $criterion.$extension;
133 133
         }, $criteria)[0];
134 134
 
135 135
         return $this->arrayToRegexPattern(array_unique($names));
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     {
161 161
         $array = array_map('preg_quote', $array);
162 162
 
163
-        return '/' . implode('|', $array) . '/';
163
+        return '/'.implode('|', $array).'/';
164 164
     }
165 165
 
166 166
     /**
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
             $extensions = new Extensions(['']);
179 179
         }
180 180
 
181
-        if (! $extensions instanceof Extensions) {
182
-            $extensions = new Extensions((array)$extensions);
181
+        if ( ! $extensions instanceof Extensions) {
182
+            $extensions = new Extensions((array) $extensions);
183 183
         }
184 184
 
185 185
         return $extensions;
Please login to merge, or discard this patch.
src/View/Location/Locations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function hasLocation(Location $location): bool
55 55
     {
56
-        return $this->exists(function ($key, $element) use ($location) {
56
+        return $this->exists(function($key, $element) use ($location) {
57 57
             return $location == $element;
58 58
         });
59 59
     }
Please login to merge, or discard this patch.
src/View/Support/AbstractFinder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     protected function initializeFindables($arguments = null)
157 157
     {
158
-        $this->findables = $this->findables->map(function ($findable) use ($arguments) {
158
+        $this->findables = $this->findables->map(function($findable) use ($arguments) {
159 159
             return $this->initializeFindable($findable, $arguments);
160 160
         });
161 161
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             $findable = $this->instantiateFindableFromCallable($findable, $arguments);
198 198
         }
199 199
 
200
-        if (! $findable instanceof Findable) {
200
+        if ( ! $findable instanceof Findable) {
201 201
             throw new FailedToInstantiateFindable(
202 202
                 sprintf(
203 203
                     _('Could not instantiate Findable "%s".'),
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function instantiateFindableFromString(string $string, $arguments = []): Findable
223 223
     {
224
-        return new $string(...(array)$arguments);
224
+        return new $string(...(array) $arguments);
225 225
     }
226 226
 
227 227
     /**
@@ -236,6 +236,6 @@  discard block
 block discarded – undo
236 236
      */
237 237
     protected function instantiateFindableFromCallable(callable $callable, $arguments = []): Findable
238 238
     {
239
-        return $callable(...(array)$arguments);
239
+        return $callable(...(array) $arguments);
240 240
     }
241 241
 }
Please login to merge, or discard this patch.
src/View/ViewBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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
         
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
             $type = $type($uri, $engine);
274 274
         }
275 275
 
276
-        if (! $type instanceof View) {
276
+        if ( ! $type instanceof View) {
277 277
             throw new FailedToInstantiateView(
278 278
                 sprintf(
279 279
                     _('Could not instantiate view "%s".'),
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     protected function getConfig($config = []): ConfigInterface
298 298
     {
299
-        $defaults = ConfigFactory::create(dirname(__DIR__, 2) . '/config/defaults.php', $config);
299
+        $defaults = ConfigFactory::create(dirname(__DIR__, 2).'/config/defaults.php', $config);
300 300
         $config   = $config
301 301
             ? ConfigFactory::createFromArray(array_merge_recursive($defaults->getArrayCopy(), $config->getArrayCopy()))
302 302
             : $defaults;
Please login to merge, or discard this patch.