@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** @var \Ivory\HttpAdapter\HttpAdapterException $exception */ |
| 53 | 53 | |
| 54 | 54 | $mainUri = $request->getUri(); |
| 55 | - $this->redirects[(string)$mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl] = (string)$mainUri; |
|
| 55 | + $this->redirects[(string) $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl] = (string) $mainUri; |
|
| 56 | 56 | |
| 57 | 57 | $this->urls[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']]; |
| 58 | 58 | $this->urlStack[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']]; |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | public function getSystem(UriInterface $uri) |
| 80 | 80 | { |
| 81 | - if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 82 | - return $this->urls[$this->redirects[(string)$uri]]['system']; |
|
| 81 | + if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 82 | + return $this->urls[$this->redirects[(string) $uri]]['system']; |
|
| 83 | 83 | } |
| 84 | - return $this->urls[(string)$uri]['system']; |
|
| 84 | + return $this->urls[(string) $uri]['system']; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | public function getSystems() |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function validate(Response $response) |
| 15 | 15 | { |
| 16 | - $url = $response->getUri()->getScheme() . '://' . $response->getUri()->getHost(); |
|
| 16 | + $url = $response->getUri()->getScheme() . '://' . $response->getUri()->getHost(); |
|
| 17 | 17 | |
| 18 | 18 | if (substr_count($url, '/') === 2) { |
| 19 | 19 | $filename = $robotsUrl = $url . '/robots.txt'; |