| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class PathResolver |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Return an absolute path from a relative one |
||
| 9 | * If the path doesn't exist, returns null |
||
| 10 | * |
||
| 11 | * @param string $path |
||
| 12 | * @param string $base |
||
| 13 | * @return string|null |
||
| 14 | */ |
||
| 15 | public static function resolve(string $path, string $base = BASE_PATH): ?string |
||
| 23 |