Completed
Push — master ( 4d12bd...38508b )
by Nils
05:01
created
src/Rules/Http/Header/HttpStatusRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function validate(Response $response)
26 26
     {
27 27
         if ($response->getStatus() !== $this->expectedStatus) {
28
-            throw new ValidationFailedException('Status code ' . $response->getStatus() . ' found, ' . $this->expectedStatus . ' expected.');
28
+            throw new ValidationFailedException('Status code '.$response->getStatus().' found, '.$this->expectedStatus.' expected.');
29 29
         }
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Rules/Html/SizeRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rules/Html/ForeignDomainImageRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rules/Html/XPathExistsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $domXPath = new \DOMXPath($domDocument);
28 28
 
29 29
         foreach ($this->xPaths as $xpath) {
30
-            $this->assert($domXPath->query($xpath)->length > 0, 'The xpath ' . $xpath . ' was not found.');
30
+            $this->assert($domXPath->query($xpath)->length > 0, 'The xpath '.$xpath.' was not found.');
31 31
         }
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Rules/Html/InsecureContentRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Rules/Html/StringNotExistsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rules/Html/InvalidUrlsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rules/Html/StringExistsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rules/Xml/DuplicateIdRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.