@@ -29,13 +29,13 @@ |
||
29 | 29 | { |
30 | 30 | foreach ($this->files($path) as $item) { |
31 | 31 | $file = $item->getPathname(); |
32 | - $namePath = str_replace('/', '\\' , substr(substr($file, strlen($path) + 1), 0, -4)); |
|
32 | + $namePath = str_replace('/', '\\', substr(substr($file, strlen($path) + 1), 0, -4)); |
|
33 | 33 | $class = $prefix . '\\' . $namePath; |
34 | - if (! class_exists($class) && ! interface_exists($class)) { |
|
34 | + if ( ! class_exists($class) && ! interface_exists($class)) { |
|
35 | 35 | continue; |
36 | 36 | } |
37 | 37 | |
38 | - yield [$class, $file]; |
|
38 | + yield [ $class, $file ]; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @return int |
32 | 32 | */ |
33 | - function (SplFileInfo $a, SplFileInfo $b) { |
|
33 | + function(SplFileInfo $a, SplFileInfo $b) { |
|
34 | 34 | $pathA = $a->getPathname(); |
35 | 35 | $pathB = $b->getPathname(); |
36 | 36 | $cntA = count(explode('/', $pathA)); |