Total Complexity | 10 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class Directory |
||
24 | { |
||
25 | /** |
||
26 | * @param string $directory |
||
27 | * |
||
28 | * @return string |
||
29 | * |
||
30 | * @throws \Exception |
||
31 | */ |
||
32 | 18 | public static function checkDirectory(string $directory): string |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param string $dir |
||
57 | */ |
||
58 | 6 | public static function removeDir(string $dir): void |
|
83 |
If you suppress an error, we recommend checking for the error condition explicitly: