Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public static function findParentDir(string $path, string $dir) : string |
||
21 | { |
||
22 | $path = self::normalizePath($path); |
||
23 | |||
24 | return self::pathContainsDir($path, $dir) |
||
25 | ? self::normalizePath($path . DIRECTORY_SEPARATOR . $dir) |
||
26 | : self::findParentDir(self::parentDir($path), $dir); |
||
27 | } |
||
28 | |||
60 |