Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class PathHelper |
||
8 | { |
||
9 | /** |
||
10 | * PHP implementation of {@see realpath()} method returns `false` when file or directory does not exist. |
||
11 | * This method prevents this behavior. |
||
12 | * |
||
13 | * @param string $path |
||
14 | * @return string |
||
15 | */ |
||
16 | public static function realpath(string $path): string |
||
32 | } |
||
33 | |||
34 | public static function normalize(string $path): string |
||
45 |