| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function all(string $path): array |
||
| 10 | { |
||
| 11 | if (Directory::doesntExist($path)) { |
||
|
|
|||
| 12 | throw new DirectoryNotFoundException($path); |
||
| 13 | } |
||
| 14 | |||
| 15 | $files = []; |
||
| 16 | |||
| 17 | foreach (Directory::all($path) as $iterator) { |
||
| 18 | if ($iterator->isFile()) { |
||
| 19 | $files[] = $files; |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | return $files; |
||
| 24 | } |
||
| 38 |