Conditions | 5 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 1 | public function getIterator(): \Traversable |
|
32 | { |
||
33 | 1 | foreach ($this->paths as $path) { |
|
34 | 1 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, $this->flags)); |
|
35 | |||
36 | /** @var \SplFileInfo $file */ |
||
37 | 1 | foreach ($iterator as $file) { |
|
38 | 1 | if ($file->isDir()) { |
|
39 | 1 | continue; |
|
40 | } |
||
41 | 1 | if (false !== $file->getRealPath()) { |
|
42 | 1 | yield $file->getRealPath(); |
|
43 | } |
||
48 |