| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 4 | public function resolvePath($currentPath, $importPath) |
|
| 30 | { |
||
| 31 | 4 | if (substr($importPath, 0, 1) == DIRECTORY_SEPARATOR) { |
|
| 32 | 1 | return $this->preparePath($importPath); |
|
| 33 | } else { |
||
| 34 | 3 | $path = dirname($currentPath) . DIRECTORY_SEPARATOR . $importPath; |
|
| 35 | 3 | return $this->preparePath($path); |
|
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 72 |