|
@@ -14,7 +14,7 @@ discard block |
|
|
block discarded – undo |
|
14
|
14
|
private function getEndpoint(Uri $uri) |
|
15
|
15
|
{ |
|
16
|
16
|
// return str_replace('#url#', urlencode('https://webhook.koalamon.com'), 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) |
|
@@ -33,13 +33,13 @@ discard block |
|
|
block discarded – undo |
|
33
|
33
|
))); |
|
34
|
34
|
|
|
35
|
35
|
if (property_exists($result, "error")) { |
|
36
|
|
- throw new ValidationFailedException('Google mobile friendly test was not passed. Error "' . $result->error->message . '"'); |
|
|
36
|
+ throw new ValidationFailedException('Google mobile friendly test was not passed. Error "'.$result->error->message.'"'); |
|
37
|
37
|
} |
|
38
|
38
|
|
|
39
|
39
|
$passResult = $result->ruleGroups->USABILITY; |
|
40
|
40
|
|
|
41
|
41
|
if (!$passResult->pass) { |
|
42
|
|
- throw new ValidationFailedException('Google mobile friendly test was not passed. Score ' . $passResult->score . '/100.'); |
|
|
42
|
+ throw new ValidationFailedException('Google mobile friendly test was not passed. Score '.$passResult->score.'/100.'); |
|
43
|
43
|
} |
|
44
|
44
|
} |
|
45
|
45
|
} |
Please login to merge, or discard this patch.