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