@@ -26,6 +26,6 @@ |
||
26 | 26 | protected function doValidation(Response $response) |
27 | 27 | { |
28 | 28 | $size = strlen($response->getBody()) / 1000; |
29 | - $this->assert($size <= $this->maxSize, 'The size of this html file is too big (' . $size . ' KB)'); |
|
29 | + $this->assert($size <= $this->maxSize, 'The size of this html file is too big ('.$size.' KB)'); |
|
30 | 30 | } |
31 | 31 | } |
@@ -41,6 +41,6 @@ |
||
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | - $this->assert(count($foreignImages) === 0, 'Images from a foreign domain where found (' . implode(', ', $foreignImages) . ')'); |
|
44 | + $this->assert(count($foreignImages) === 0, 'Images from a foreign domain where found ('.implode(', ', $foreignImages).')'); |
|
45 | 45 | } |
46 | 46 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | foreach ($resources as $resource) { |
34 | 34 | if ($resource->getScheme() && 'https' !== $resource->getScheme()) { |
35 | - throw new ValidationFailedException('At least one dependency was found on a secure url, that was transfered insecure (' . (string) $resource . ')'); |
|
35 | + throw new ValidationFailedException('At least one dependency was found on a secure url, that was transfered insecure ('.(string) $resource.')'); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -25,6 +25,6 @@ |
||
25 | 25 | public function doValidation(Response $response) |
26 | 26 | { |
27 | 27 | $this->assert(strpos($response->getBody(), $this->string) !== false, |
28 | - 'The given string (' . $this->string . ') was found in this document.'); |
|
28 | + 'The given string ('.$this->string.') was found in this document.'); |
|
29 | 29 | } |
30 | 30 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | - $this->assert(count($invalidUrls) === 0, 'Invalid urls found (' . implode(', ', $invalidUrls) . ').'); |
|
33 | + $this->assert(count($invalidUrls) === 0, 'Invalid urls found ('.implode(', ', $invalidUrls).').'); |
|
34 | 34 | } |
35 | 35 | } |
@@ -25,6 +25,6 @@ |
||
25 | 25 | protected function doValidation(Response $response) |
26 | 26 | { |
27 | 27 | $this->assert(strpos($response->getBody(), $this->string) !== false, |
28 | - 'The given string (' . $this->string . ') was not found in this document.'); |
|
28 | + 'The given string ('.$this->string.') was not found in this document.'); |
|
29 | 29 | } |
30 | 30 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | if (count($duplicatedIds) > 0) { |
38 | 38 | unset($duplicatedIds['']); |
39 | - throw new ValidationFailedException('Duplicate ids found (' . implode(', ', array_keys($duplicatedIds)) . ')'); |
|
39 | + throw new ValidationFailedException('Duplicate ids found ('.implode(', ', array_keys($duplicatedIds)).')'); |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | private function getSchema() |
17 | 17 | { |
18 | - return __DIR__ . '/' . self::SCHEMA; |
|
18 | + return __DIR__.'/'.self::SCHEMA; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function validate(Response $response) |
@@ -32,17 +32,17 @@ discard block |
||
32 | 32 | $lastError = libxml_get_last_error(); |
33 | 33 | if ($lastError) { |
34 | 34 | throw new ValidationFailedException( |
35 | - 'The given xml file is not well formed (last error: ' . |
|
36 | - str_replace("\n", '', $lastError->message) . ').'); |
|
35 | + 'The given xml file is not well formed (last error: '. |
|
36 | + str_replace("\n", '', $lastError->message).').'); |
|
37 | 37 | } |
38 | 38 | $valid = @$dom->schemaValidate($this->getSchema()); |
39 | 39 | if (!$valid) { |
40 | 40 | $lastError = libxml_get_last_error(); |
41 | 41 | $lastErrorMessage = str_replace("\n", '', $lastError->message); |
42 | 42 | throw new ValidationFailedException( |
43 | - 'The given xml file did not Validate vs. ' . |
|
44 | - $this->getSchema() . ' (last error: ' . |
|
45 | - $lastErrorMessage . ').'); |
|
43 | + 'The given xml file did not Validate vs. '. |
|
44 | + $this->getSchema().' (last error: '. |
|
45 | + $lastErrorMessage.').'); |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | } |
@@ -25,6 +25,6 @@ |
||
25 | 25 | protected function doValidation(Response $response) |
26 | 26 | { |
27 | 27 | $size = strlen($response->getBody()) / 1000; |
28 | - $this->assert($size <= $this->maxSize, 'The size of the file is too big (' . $size . ' KB)'); |
|
28 | + $this->assert($size <= $this->maxSize, 'The size of the file is too big ('.$size.' KB)'); |
|
29 | 29 | } |
30 | 30 | } |