| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class File |
||
| 8 | { |
||
| 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 | } |
||
| 25 | |||
| 26 | public function store(string $path, string $content) |
||
| 31 | } |
||
| 32 | |||
| 33 | public function exists(string $path): bool |
||
| 36 | } |
||
| 37 | } |
||
| 38 |