@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | if (($response->getStatus() < 300 || $response->getStatus() >= 400) && $response->getContentType() === 'text/html') { |
| 17 | 17 | if (stripos($response->getBody(), '</html>') === false) { |
| 18 | - throw new ValidationFailedException('Closing html tag is missing (document lengh: ' . strlen($response->getBody()) . ').'); |
|
| 18 | + throw new ValidationFailedException('Closing html tag is missing (document lengh: '.strlen($response->getBody()).').'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | private function getEndpoint(Uri $uri) |
| 15 | 15 | { |
| 16 | 16 | // return str_replace('#url#', urlencode('http://www.phpgangsta.de'), self::ENDPOINT); |
| 17 | - return str_replace('#url#', urlencode((string)$uri), self::ENDPOINT); |
|
| 17 | + return str_replace('#url#', urlencode((string) $uri), self::ENDPOINT); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function validate(Response $response) |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $passResult = $result->ruleGroups->USABILITY; |
| 28 | 28 | |
| 29 | 29 | if (!$passResult->pass) { |
| 30 | - throw new ValidationFailedException('Google mobile friendly test was not passed. Score ' . $passResult->score . '/100.'); |
|
| 30 | + throw new ValidationFailedException('Google mobile friendly test was not passed. Score '.$passResult->score.'/100.'); |
|
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | \ No newline at end of file |