| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 49 | private function resolveUri(&$uri) |
||
| 50 | { |
||
| 51 | if (null === $uri) { |
||
|
|
|||
| 52 | return; |
||
| 53 | } |
||
| 54 | |||
| 55 | // http/s is the only remote transport considered to be remote so far |
||
| 56 | // as it is the only one used |
||
| 57 | if (1 === preg_match('(^https?://)i', $uri)) { |
||
| 58 | return; |
||
| 59 | } |
||
| 60 | |||
| 61 | if (LibFs::isAbsolutePath($uri)) { |
||
| 62 | return; |
||
| 63 | } |
||
| 64 | |||
| 65 | $baseDir = dirname($this->file); |
||
| 66 | $buffer = $baseDir . '/' . $uri; |
||
| 67 | $uri = LibFs::normalizePathSegments($buffer); |
||
| 68 | } |
||
| 70 |