@@ -91,8 +91,8 @@ |
||
91 | 91 | { |
92 | 92 | $finder = new Finder(); |
93 | 93 | $finder->files() |
94 | - ->name($pattern) |
|
95 | - ->in($directories); |
|
94 | + ->name($pattern) |
|
95 | + ->in($directories); |
|
96 | 96 | |
97 | 97 | return $finder; |
98 | 98 | } |
@@ -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->search($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; |