@@ -11,7 +11,7 @@ |
||
11 | 11 | public function testGetClasses() |
12 | 12 | { |
13 | 13 | $classLoader = new ClassLoader(); |
14 | - $classLoader->addPsr4('\\Robo\\', [realpath(__DIR__.'/../../src')]); |
|
14 | + $classLoader->addPsr4('\\Robo\\', [realpath(__DIR__ . '/../../src')]); |
|
15 | 15 | |
16 | 16 | $discovery = new RelativeNamespaceDiscovery('\Commands'); |
17 | 17 | $discovery->setClassLoader($classLoader); |
@@ -56,17 +56,17 @@ |
||
56 | 56 | foreach ($this->getClassLoader()->getPrefixesPsr4() as $baseNamespace => $directories) { |
57 | 57 | $path = $this->getRelativeNamespacePath(); |
58 | 58 | |
59 | - $directories = array_map(function ($directory) use ($path) { |
|
60 | - return $directory.$path; |
|
59 | + $directories = array_map(function($directory) use ($path) { |
|
60 | + return $directory . $path; |
|
61 | 61 | }, $directories); |
62 | 62 | |
63 | - $directories = array_filter($directories, function ($path) { |
|
63 | + $directories = array_filter($directories, function($path) { |
|
64 | 64 | return is_dir($path); |
65 | 65 | }); |
66 | 66 | |
67 | 67 | foreach ($this->serach($directories, $this->searchPattern) as $file) { |
68 | 68 | $relativePathName = $file->getRelativePathname(); |
69 | - $classes[] = $baseNamespace.str_replace(['/', '.php'], ['\\', ''], $relativePathName); |
|
69 | + $classes[] = $baseNamespace . str_replace(['/', '.php'], ['\\', ''], $relativePathName); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | return $classes; |