| Total Complexity | 10 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class FileSystemHelper |
||
| 8 | { |
||
| 9 | 1 | public function fileExists(string $path): bool |
|
| 10 | { |
||
| 11 | 1 | return file_exists($path); |
|
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array<int, mixed> $output |
||
| 16 | */ |
||
| 17 | 1 | public function exec(string $command, array &$output, int &$returnVar): void |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function fileSize(string $path): int|false |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Recursively deletes a directory and its contents. |
||
| 29 | */ |
||
| 30 | 57 | public function deleteDirectory(string $dir): bool |
|
| 53 |