Test Failed
Push — master ( 45aa82...49ad37 )
by Alain
02:59
created
src/View/Engine/PHPEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function render($uri, array $context = [])
58 58
     {
59
-        if (! is_readable($uri)) {
59
+        if ( ! is_readable($uri)) {
60 60
             throw new FailedToLoadViewException(
61 61
                 sprintf(
62 62
                     _('The View URI "%1$s" is not accessible or readable.'),
Please login to merge, or discard this patch.
src/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      */
90 90
     public static function getDefaultConfig()
91 91
     {
92
-        return ConfigFactory::create(__DIR__ . '/../config/defaults.php')
92
+        return ConfigFactory::create(__DIR__.'/../config/defaults.php')
93 93
                             ->getSubConfig('BrightNucleus\View');
94 94
     }
95 95
 
Please login to merge, or discard this patch.
src/View/View/NullView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function render(array $context = [], $echo = false)
38 38
     {
39
-        if (! $echo) {
39
+        if ( ! $echo) {
40 40
             return '';
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
src/View/Support/AbstractFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     protected function initializeFindables($arguments = null)
152 152
     {
153
-        $this->findables = $this->findables->map(function ($findable) use ($arguments) {
153
+        $this->findables = $this->findables->map(function($findable) use ($arguments) {
154 154
             return $this->initializeFindable($findable, $arguments);
155 155
         });
156 156
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
             $findable = $this->instantiateFindableFromCallable($findable, $arguments);
192 192
         }
193 193
 
194
-        if (! $findable instanceof Findable) {
194
+        if ( ! $findable instanceof Findable) {
195 195
             throw new FailedToInstantiateFindableException(
196 196
                 sprintf(
197 197
                     _('Could not instantiate Findable "%s".'),
Please login to merge, or discard this patch.
src/View/Location/LocationCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function hasLocation($location)
58 58
     {
59
-        if (! $location instanceof LocationInterface) {
59
+        if ( ! $location instanceof LocationInterface) {
60 60
             throw new InvalidLocationException(
61 61
                 sprintf(
62 62
                     _('Invalid location to check existence for: "%s".'),
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             );
66 66
         }
67 67
 
68
-        return $this->exists(function ($key, $element) use ($location) {
68
+        return $this->exists(function($key, $element) use ($location) {
69 69
             return $location == $element;
70 70
         });
71 71
     }
Please login to merge, or discard this patch.
src/View/ViewBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -201,10 +201,10 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function scanLocations(array $criteria)
203 203
     {
204
-        $uris = $this->locations->map(function ($location) use ($criteria) {
204
+        $uris = $this->locations->map(function($location) use ($criteria) {
205 205
             /** @var LocationInterface $location */
206 206
             return $location->getURI($criteria);
207
-        })->filter(function ($uri) {
207
+        })->filter(function($uri) {
208 208
             return false !== $uri;
209 209
         });
210 210
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             $type = $type($uri, $engine);
261 261
         }
262 262
 
263
-        if (! $type instanceof ViewInterface) {
263
+        if ( ! $type instanceof ViewInterface) {
264 264
             throw new FailedToInstantiateViewException(
265 265
                 sprintf(
266 266
                     _('Could not instantiate view "%s".'),
Please login to merge, or discard this patch.
src/View/Location/FilesystemLocation.php 1 patch
Spacing   +6 added lines, -6 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));
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
      */
159 159
     protected function arrayToRegexPattern(array $array)
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 ExtensionCollection(['']);
181 181
         }
182 182
 
183
-        if (! $extensions instanceof ExtensionCollection) {
184
-            $extensions = new ExtensionCollection((array)$extensions);
183
+        if ( ! $extensions instanceof ExtensionCollection) {
184
+            $extensions = new ExtensionCollection((array) $extensions);
185 185
         }
186 186
 
187 187
         return $extensions;
Please login to merge, or discard this patch.