(string $path)
| 394 | } |
| 395 | |
| 396 | private function relativePath(string $path): string |
| 397 | { |
| 398 | $p = str_replace('\\', '/', $path); |
| 399 | $root = $this->localRoot; |
| 400 | if ($root !== '' && str_starts_with($p, $root)) { |
| 401 | $p = substr($p, strlen($root)); |
| 402 | } |
| 403 | return ltrim($p, '/'); |
| 404 | } |
| 405 | |
| 406 | private function hrefToRelative(string $href): string |
| 407 | { |
no outgoing calls
no test coverage detected