| @@ 140-147 (lines=8) @@ | ||
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| 140 | public function getOriginUri(UriInterface $uri) |
|
| 141 | { |
|
| 142 | if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 143 | return $this->urls[$this->redirects[(string)$uri]]['url']; |
|
| 144 | } |
|
| 145 | ||
| 146 | return $uri; |
|
| 147 | } |
|
| 148 | ||
| 149 | public function getComingFrom(UriInterface $uri) |
|
| 150 | { |
|
| @@ 154-161 (lines=8) @@ | ||
| 151 | return $uri; |
|
| 152 | } |
|
| 153 | ||
| 154 | public function getSystem(UriInterface $uri) |
|
| 155 | { |
|
| 156 | if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 157 | return $this->urls[$this->redirects[(string)$uri]]['system']; |
|
| 158 | } |
|
| 159 | ||
| 160 | return $this->urls[(string)$uri]['system']; |
|
| 161 | } |
|
| 162 | ||
| 163 | public function getSystems() |
|
| 164 | { |
|