Passed
Pull Request — master (#111)
by Asmir
28:13 queued 13:15
created
src/Driver/FileLocator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             }
32 32
 
33 33
             $len = '' === $prefix ? 0 : strlen($prefix) + 1;
34
-            $path = $dir . '/' . str_replace('\\', '.', substr($class->name, $len)) . '.' . $extension;
34
+            $path = $dir.'/'.str_replace('\\', '.', substr($class->name, $len)).'.'.$extension;
35 35
             $existsPath = file_exists($path);
36 36
             $possibleFiles[$path] = $existsPath;
37 37
             if ($existsPath) {
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
                 new \RecursiveDirectoryIterator($dir),
66 66
                 \RecursiveIteratorIterator::LEAVES_ONLY
67 67
             );
68
-            $nsPrefix = '' !== $prefix ? $prefix . '\\' : '';
68
+            $nsPrefix = '' !== $prefix ? $prefix.'\\' : '';
69 69
             foreach ($iterator as $file) {
70
-                if (($fileName = $file->getBasename('.' . $extension)) === $file->getBasename()) {
70
+                if (($fileName = $file->getBasename('.'.$extension)) === $file->getBasename()) {
71 71
                     continue;
72 72
                 }
73 73
 
74
-                $classes[] = $nsPrefix . str_replace('.', '\\', $fileName);
74
+                $classes[] = $nsPrefix.str_replace('.', '\\', $fileName);
75 75
             }
76 76
         }
77 77
 
Please login to merge, or discard this patch.