Completed
Push — master ( cf31cf...570770 )
by Nils
04:40
created
src/Rules/Html/RegExExistsRule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 
30 30
         foreach ($this->regExs as $regEx) {
31 31
             if ($regEx['isRegEx']) {
32
-                if (preg_match('^' . $regEx['pattern'] . '^', (string)$response->getBody()) == 0) {
33
-                    $errors[] = 'Regular expression: ' . $regEx['pattern'];
32
+                if (preg_match('^'.$regEx['pattern'].'^', (string) $response->getBody()) == 0) {
33
+                    $errors[] = 'Regular expression: '.$regEx['pattern'];
34 34
                 }
35 35
             } else {
36
-                var_dump(preg_match('^' . preg_quote($regEx['pattern']) . '^', (string)$response->getBody()));
37
-                if (preg_match('^' . preg_quote($regEx['pattern']) . '^', (string)$response->getBody()) == 0) {
38
-                    $errors[] = 'Text: ' . $regEx['pattern'];
36
+                var_dump(preg_match('^'.preg_quote($regEx['pattern']).'^', (string) $response->getBody()));
37
+                if (preg_match('^'.preg_quote($regEx['pattern']).'^', (string) $response->getBody()) == 0) {
38
+                    $errors[] = 'Text: '.$regEx['pattern'];
39 39
                 }
40 40
             }
41 41
         }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $errorString = "The following text elements where not found: <ul>";
45 45
 
46 46
             foreach ($errors as $error) {
47
-                $errorString .= "<li>" . $error . "</li>";
47
+                $errorString .= "<li>".$error."</li>";
48 48
             }
49 49
 
50 50
             $errorString .= "</ul>";
Please login to merge, or discard this patch.