Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class SeparatorSigns |
||
12 | { |
||
13 | /** |
||
14 | * Remove separator sign from path end |
||
15 | * @param string $path |
||
16 | * @param string $separator |
||
17 | * @return string |
||
18 | */ |
||
19 | 3 | public static function removeFromEnd(string $path, string $separator = DIRECTORY_SEPARATOR): string |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * Remove separator sign from path start |
||
27 | * @param string $path |
||
28 | * @param string $separator |
||
29 | * @return string |
||
30 | */ |
||
31 | 3 | public static function removeFromStart(string $path, string $separator = DIRECTORY_SEPARATOR): string |
|
37 |