Completed
Push — master ( 5612fe...d01d1c )
by Nils
02:38
created
src/Rules/Html/CssSelectorExistsRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function doValidation(Response $response)
25 25
     {
26 26
         $domDocument = new \DOMDocument();
27
-        @$domDocument->loadHTML((string)$response->getBody());
27
+        @$domDocument->loadHTML((string) $response->getBody());
28 28
 
29 29
         $domXPath = new \DOMXPath($domDocument);
30 30
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             try {
38 38
                 $selectorAsXPath = $converter->toXPath($selector['pattern']);
39 39
             } catch (\Exception $e) {
40
-                throw new ValidationFailedException('Invalid css selector (' . $selector['pattern'] . ').');
40
+                throw new ValidationFailedException('Invalid css selector ('.$selector['pattern'].').');
41 41
             }
42 42
 
43 43
             $count = $domXPath->query($selectorAsXPath)->length;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if ($error === true) {
52 52
             $allNotFoundSelectors = implode('", "', $snotFoundSelectors);
53 53
 
54
-            throw new ValidationFailedException('CSS Selector "' . $allNotFoundSelectors . '" not found in DOM.');
54
+            throw new ValidationFailedException('CSS Selector "'.$allNotFoundSelectors.'" not found in DOM.');
55 55
         }
56 56
     }
57 57
 }
Please login to merge, or discard this patch.