| @@ 36-43 (lines=8) @@ | ||
| 33 | if ($this->path === '' or $this->path === '/') { |
|
| 34 | return $this->normalizePath($path); |
|
| 35 | } |
|
| 36 | if ($path === $this->path) { |
|
| 37 | return '/'; |
|
| 38 | } else if (strpos($path, $this->path . '/') !== 0) { |
|
| 39 | return null; |
|
| 40 | } else { |
|
| 41 | $path = substr($path, strlen($this->path)); |
|
| 42 | return $this->normalizePath($path); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| @@ 105-114 (lines=10) @@ | ||
| 102 | return '/'; |
|
| 103 | } |
|
| 104 | ||
| 105 | if (strpos($path, $this->fakeRoot) !== 0) { |
|
| 106 | return null; |
|
| 107 | } else { |
|
| 108 | $path = substr($path, strlen($this->fakeRoot)); |
|
| 109 | if (strlen($path) === 0) { |
|
| 110 | return '/'; |
|
| 111 | } else { |
|
| 112 | return $path; |
|
| 113 | } |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|