@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } else { |
| 174 | 174 | $system = $this->system; |
| 175 | 175 | } |
| 176 | - $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string)$result->getUrl()); |
|
| 176 | + $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string) $result->getUrl()); |
|
| 177 | 177 | $failedTests[] = $ruleLKey; |
| 178 | 178 | } |
| 179 | 179 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | } else { |
| 189 | 189 | $system = $this->system; |
| 190 | 190 | } |
| 191 | - $this->send($identifier, $system, 'smoke_' . $rule . '_' . $result->getUrl(), self::STATUS_SUCCESS, (string)$result->getUrl()); |
|
| 191 | + $this->send($identifier, $system, 'smoke_' . $rule . '_' . $result->getUrl(), self::STATUS_SUCCESS, (string) $result->getUrl()); |
|
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | */ |
| 86 | 86 | public function isFiltered(Event $event, $ruleName, Response $response) |
| 87 | 87 | { |
| 88 | - $uri = (string)$this->retriever->getOriginUri($response->getUri()); |
|
| 88 | + $uri = (string) $this->retriever->getOriginUri($response->getUri()); |
|
| 89 | 89 | |
| 90 | 90 | if ($this->currentModus === self::MODUS_FILTER) { |
| 91 | 91 | $isFiltered = $this->isFilteredByFilter($ruleName, $uri); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /* @var \Ivory\HttpAdapter\HttpAdapterException $exception */ |
| 54 | 54 | |
| 55 | 55 | $mainUri = $request->getUri(); |
| 56 | - $this->redirects[(string)$mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl] = (string)$mainUri; |
|
| 56 | + $this->redirects[(string) $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl] = (string) $mainUri; |
|
| 57 | 57 | |
| 58 | 58 | $this->urls[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']]; |
| 59 | 59 | $this->urlStack[] = ['url' => $mainUri->getScheme() . '://' . $mainUri->getHost() . $corruptUrl, 'system' => $url['system']]; |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public function getOriginUri(UriInterface $uri) |
| 81 | 81 | { |
| 82 | - if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 83 | - return $this->urls[$this->redirects[(string)$uri]]['url']; |
|
| 82 | + if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 83 | + return $this->urls[$this->redirects[(string) $uri]]['url']; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | return $uri; |
@@ -93,11 +93,11 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | public function getSystem(UriInterface $uri) |
| 95 | 95 | { |
| 96 | - if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 97 | - return $this->urls[$this->redirects[(string)$uri]]['system']; |
|
| 96 | + if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 97 | + return $this->urls[$this->redirects[(string) $uri]]['system']; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - return $this->urls[(string)$uri]['system']; |
|
| 100 | + return $this->urls[(string) $uri]['system']; |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | public function getSystems() |