@@ -53,14 +53,14 @@ discard block |
||
| 53 | 53 | $relativePath = $this->convertNamespaceToPath($this->relativeNamespace); |
| 54 | 54 | |
| 55 | 55 | foreach ($this->classLoader->getPrefixesPsr4() as $baseNamespace => $directories) { |
| 56 | - $directories = array_filter(array_map(function ($directory) use ($relativePath) { |
|
| 57 | - return $directory.$relativePath; |
|
| 56 | + $directories = array_filter(array_map(function($directory) use ($relativePath) { |
|
| 57 | + return $directory . $relativePath; |
|
| 58 | 58 | }, $directories), 'is_dir'); |
| 59 | 59 | |
| 60 | 60 | if ($directories) { |
| 61 | 61 | foreach ($this->search($directories, $this->searchPattern) as $file) { |
| 62 | 62 | $relativePathName = $file->getRelativePathname(); |
| 63 | - $classes[] = $baseNamespace.$this->convertPathToNamespace($relativePath.'/'.$relativePathName); |
|
| 63 | + $classes[] = $baseNamespace . $this->convertPathToNamespace($relativePath . '/' . $relativePathName); |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -107,6 +107,6 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function convertNamespaceToPath($namespace) |
| 109 | 109 | { |
| 110 | - return '/'.str_replace("\\", '/', trim($namespace, '\\')); |
|
| 110 | + return '/' . str_replace("\\", '/', trim($namespace, '\\')); |
|
| 111 | 111 | } |
| 112 | 112 | } |