Test Failed
Push — master ( 0e8283...90a3be )
by Alain
05:03
created
src/Views.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/Location/URIs.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/Location/FilesystemLocation.php 1 patch
Spacing   +7 added lines, -7 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
  *
@@ -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));
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
      */
159 159
     protected function arrayToRegexPattern(array $array): string
160 160
     {
161
-        $array = array_map(function ($entry) {
161
+        $array = array_map(function($entry) {
162 162
             return preg_quote($entry);
163 163
         }, $array);
164 164
 
165
-        return '/' . implode('|', $array) . '/';
165
+        return '/'.implode('|', $array).'/';
166 166
     }
167 167
 
168 168
     /**
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
             $extensions = new Extensions(['']);
181 181
         }
182 182
 
183
-        if (! $extensions instanceof Extensions) {
184
-            $extensions = new Extensions((array)$extensions);
183
+        if ( ! $extensions instanceof Extensions) {
184
+            $extensions = new Extensions((array) $extensions);
185 185
         }
186 186
 
187 187
         return $extensions;
Please login to merge, or discard this patch.
src/View/Location/Location.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/Location/Locations.php 1 patch
Spacing   +2 added lines, -2 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
  *
@@ -53,7 +53,7 @@  discard block
 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/NullObject.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/Support/Findable.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/Support/NullFindable.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/Support/Finder.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.