@@ -22,8 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $directoryIterator = |
| 24 | 24 | $recursive ? |
| 25 | - new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)) : |
|
| 26 | - new DirectoryIterator($directory); |
|
| 25 | + new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)) : new DirectoryIterator($directory); |
|
| 27 | 26 | |
| 28 | 27 | $this->iterator = new RegexIterator($directoryIterator, $pattern); |
| 29 | 28 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function find(): array |
| 34 | 34 | { |
| 35 | 35 | return |
| 36 | - array_filter($this->fqcnFinder->find(), function (string $fqcn) { |
|
| 36 | + array_filter($this->fqcnFinder->find(), function(string $fqcn) { |
|
| 37 | 37 | return $this->specification->isSatisfiedBy($fqcn); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | if ($this->hasClassName($tokens, $i)) { |
| 52 | 52 | $className[] = $this->getClassName($tokens, $i); |
| 53 | - return implode('\\', $className); // one class per file (psr-4 compliant) |
|
| 53 | + return implode('\\', $className); // one class per file (psr-4 compliant) |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |