| Conditions | 6 |
| Paths | 6 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function getIterator(): \Generator |
||
| 35 | { |
||
| 36 | foreach (new \DirectoryIterator($this->directory) as $fileInfo) { |
||
| 37 | if ($fileInfo->isDot()) { |
||
| 38 | continue; |
||
| 39 | } |
||
| 40 | if ($fileInfo->isFile() && $fileInfo->getExtension() == 'php') { |
||
| 41 | yield $this->prefix . $fileInfo->getBasename('.php'); |
||
| 42 | } |
||
| 43 | if ($fileInfo->isDir()) { |
||
| 44 | yield from new Psr4ClassFinder( |
||
| 45 | $this->directory . '/' . $fileInfo->getBasename(), |
||
| 46 | $this->prefix . $fileInfo->getBasename() |
||
| 47 | ); |
||
| 52 |