@@ -26,7 +26,7 @@ |
||
| 26 | 26 | && strpos($response->getContentType(), 'pdf') === false |
| 27 | 27 | && strpos($response->getContentType(), 'postscript') === false |
| 28 | 28 | && strpos($response->getContentType(), 'zip') === false |
| 29 | - && strlen((string)$response->getBody()) >= $this->minFileSize |
|
| 29 | + && strlen((string) $response->getBody()) >= $this->minFileSize |
|
| 30 | 30 | ) { |
| 31 | 31 | if (!$response->hasHeader('Content-Encoding') || $response->getHeader('Content-Encoding')[0] !== 'gzip') { |
| 32 | 32 | throw new ValidationFailedException('gzip compression not active'); |
@@ -49,9 +49,9 @@ |
||
| 49 | 49 | |
| 50 | 50 | if (count($errorList) > 0) { |
| 51 | 51 | $count = count($errorList); |
| 52 | - $msg = 'Found ' . $count . ' resource(s) with status code 4xx or 5xx. <ul>'; |
|
| 52 | + $msg = 'Found '.$count.' resource(s) with status code 4xx or 5xx. <ul>'; |
|
| 53 | 53 | foreach ($errorList as $error) { |
| 54 | - $msg .= '<li>' . $error['name'] . ' (http status: ' . $error['http_status'] . ')</li>'; |
|
| 54 | + $msg .= '<li>'.$error['name'].' (http status: '.$error['http_status'].')</li>'; |
|
| 55 | 55 | } |
| 56 | 56 | $msg .= '</ul>'; |
| 57 | 57 | return new CheckResult(CheckResult::STATUS_FAILURE, $msg, $count); |