| Total Complexity | 9 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PathResolver |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Find closest file path for specified file name while iterating upwards in the file-tree |
||
| 14 | * |
||
| 15 | * @param string $path |
||
| 16 | * @param string $fileName |
||
| 17 | * @return bool|string |
||
| 18 | */ |
||
| 19 | public static function getClosestDirForFile($path, $fileName) |
||
| 36 | } |
||
| 37 | |||
| 38 | public static function getAncestorDirForFile($filePath, $fileName) |
||
| 59 |