@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $fqcn = str_replace('\\', '.', substr($class->name, $len)); |
| 36 | 36 | |
| 37 | 37 | while (true) { |
| 38 | - $path = $dir . '/' . $fqcn . '.' . $extension; |
|
| 38 | + $path = $dir.'/'.$fqcn.'.'.$extension; |
|
| 39 | 39 | if (file_exists($path)) { |
| 40 | 40 | return $path; |
| 41 | 41 | } |
@@ -63,13 +63,13 @@ discard block |
||
| 63 | 63 | new \RecursiveDirectoryIterator($dir), |
| 64 | 64 | \RecursiveIteratorIterator::LEAVES_ONLY |
| 65 | 65 | ); |
| 66 | - $nsPrefix = '' !== $prefix ? $prefix . '\\' : ''; |
|
| 66 | + $nsPrefix = '' !== $prefix ? $prefix.'\\' : ''; |
|
| 67 | 67 | foreach ($iterator as $file) { |
| 68 | - if (($fileName = $file->getBasename('.' . $extension)) === $file->getBasename()) { |
|
| 68 | + if (($fileName = $file->getBasename('.'.$extension)) === $file->getBasename()) { |
|
| 69 | 69 | continue; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $classes[] = $nsPrefix . str_replace('.', '\\', $fileName); |
|
| 72 | + $classes[] = $nsPrefix.str_replace('.', '\\', $fileName); |
|
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |