| Total Complexity | 9 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait TRemoveCycle |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Remove sub dirs and their content recursively |
||
| 15 | * @param string $dirPath |
||
| 16 | * @param string $sign |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | 1 | protected function removeCycle(string $dirPath, string $sign = DIRECTORY_SEPARATOR): bool |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Remove ending separator sign |
||
| 39 | * @param string $path |
||
| 40 | * @param string $sign |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 1 | public static function removeEndingSign(string $path, string $sign = DIRECTORY_SEPARATOR): string |
|
| 48 |