@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $len = '' === $prefix ? 0 : strlen($prefix) + 1; |
| 30 | - $path = $dir . '/' . str_replace('\\', '.', substr($class->name, $len)) . '.' . $extension; |
|
| 30 | + $path = $dir.'/'.str_replace('\\', '.', substr($class->name, $len)).'.'.$extension; |
|
| 31 | 31 | if (file_exists($path)) { |
| 32 | 32 | return $path; |
| 33 | 33 | } |
@@ -48,13 +48,13 @@ discard block |
||
| 48 | 48 | new \RecursiveDirectoryIterator($dir), |
| 49 | 49 | \RecursiveIteratorIterator::LEAVES_ONLY |
| 50 | 50 | ); |
| 51 | - $nsPrefix = '' !== $prefix ? $prefix . '\\' : ''; |
|
| 51 | + $nsPrefix = '' !== $prefix ? $prefix.'\\' : ''; |
|
| 52 | 52 | foreach ($iterator as $file) { |
| 53 | - if (($fileName = $file->getBasename('.' . $extension)) === $file->getBasename()) { |
|
| 53 | + if (($fileName = $file->getBasename('.'.$extension)) === $file->getBasename()) { |
|
| 54 | 54 | continue; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $classes[] = $nsPrefix . str_replace('.', '\\', $fileName); |
|
| 57 | + $classes[] = $nsPrefix.str_replace('.', '\\', $fileName); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |