Test Failed
Push — master ( 275d9f...e3cf61 )
by Alain
02:01
created
src/View/Location/FilesystemLocation.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $finder = new Finder();
96 96
 
97 97
             try {
98
-            	bdump( $this->getPathPattern($this->getRelativePath($criteria)) );
98
+            	bdump($this->getPathPattern($this->getRelativePath($criteria)));
99 99
                 $finder->files()
100 100
                     ->name($this->getNamePattern($criteria, $extension))
101 101
                     ->in($this->getPathPattern($this->getRelativePath($criteria)));
@@ -125,18 +125,18 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $names = [];
127 127
 
128
-        $names[] = array_map(function ($criterion) use ($extension) {
128
+        $names[] = array_map(function($criterion) use ($extension) {
129 129
             $uriExtension = URIHelper::containsExtension($criterion);
130
-            if (! empty($extension)) {
130
+            if ( ! empty($extension)) {
131 131
                 $extension = ltrim($extension, '.');
132 132
 
133 133
                 if ($uriExtension === $extension) {
134
-                    $criterion = substr($criterion,0,-strlen(".{$extension}"));
134
+                    $criterion = substr($criterion, 0, -strlen(".{$extension}"));
135 135
                 }
136 136
             } else {
137 137
                 $extension = URIHelper::containsExtension($criterion);
138
-                if (!empty($extension)) {
139
-                    $criterion = substr($criterion,0,-strlen(".{$extension}"));
138
+                if ( ! empty($extension)) {
139
+                    $criterion = substr($criterion, 0, -strlen(".{$extension}"));
140 140
                 }
141 141
             }
142 142
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 : "{$criterion}\.{$extension}$";
148 148
         }, $criteria)[0];
149 149
 
150
-        return chr(1) . implode('|', array_unique($names)) . chr(1);
150
+        return chr(1).implode('|', array_unique($names)).chr(1);
151 151
     }
152 152
 
153 153
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             return $this->path;
166 166
         }
167 167
 
168
-        return rtrim($this->path,'/') . '/' . ltrim($relativePath, '/');
168
+        return rtrim($this->path, '/').'/'.ltrim($relativePath, '/');
169 169
     }
170 170
 
171 171
     /**
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
             $extensions = new Extensions(['']);
204 204
         }
205 205
 
206
-        if (! $extensions instanceof Extensions) {
207
-            $extensions = new Extensions((array)$extensions);
206
+        if ( ! $extensions instanceof Extensions) {
207
+            $extensions = new Extensions((array) $extensions);
208 208
         }
209 209
 
210 210
         return $extensions;
Please login to merge, or discard this patch.