Total Complexity | 10 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 95.65% |
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 | 20 | public static function checkDirectory(string $directory): string |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @param string $dir |
||
55 | */ |
||
56 | 6 | public static function removeDir(string $dir): void |
|
81 |
If you suppress an error, we recommend checking for the error condition explicitly: