Test Failed
Push — master ( e3cf61...f26703 )
by Alain
01:54
created
src/View/Location/FilesystemLocation.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -124,18 +124,18 @@  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
             $uriExtension = URIHelper::containsExtension($criterion);
129
-            if (! empty($extension)) {
129
+            if ( ! empty($extension)) {
130 130
                 $extension = ltrim($extension, '.');
131 131
 
132 132
                 if ($uriExtension === $extension) {
133
-                    $criterion = substr($criterion,0,-strlen(".{$extension}"));
133
+                    $criterion = substr($criterion, 0, -strlen(".{$extension}"));
134 134
                 }
135 135
             } else {
136 136
                 $extension = URIHelper::containsExtension($criterion);
137
-                if (!empty($extension)) {
138
-                    $criterion = substr($criterion,0,-strlen(".{$extension}"));
137
+                if ( ! empty($extension)) {
138
+                    $criterion = substr($criterion, 0, -strlen(".{$extension}"));
139 139
                 }
140 140
             }
141 141
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 : "{$criterion}\.{$extension}$";
147 147
         }, $criteria)[0];
148 148
 
149
-        return chr(1) . implode('|', array_unique($names)) . chr(1);
149
+        return chr(1).implode('|', array_unique($names)).chr(1);
150 150
     }
151 151
 
152 152
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             return $this->path;
165 165
         }
166 166
 
167
-        return rtrim($this->path,'/') . '/' . ltrim($relativePath, '/');
167
+        return rtrim($this->path, '/').'/'.ltrim($relativePath, '/');
168 168
     }
169 169
 
170 170
     /**
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
             $extensions = new Extensions(['']);
203 203
         }
204 204
 
205
-        if (! $extensions instanceof Extensions) {
206
-            $extensions = new Extensions((array)$extensions);
205
+        if ( ! $extensions instanceof Extensions) {
206
+            $extensions = new Extensions((array) $extensions);
207 207
         }
208 208
 
209 209
         return $extensions;
Please login to merge, or discard this patch.