| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 4 | public function resolvePath($currentPath, $importPath) { |
|
| 22 | 4 | if (substr($importPath, 0, 1) == DIRECTORY_SEPARATOR) { |
|
| 23 | 1 | return $this->preparePath($importPath); |
|
| 24 | } else { |
||
| 25 | 3 | $path = dirname($currentPath) . DIRECTORY_SEPARATOR . $importPath; |
|
| 26 | 3 | return $this->preparePath($path); |
|
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 54 |