Completed
Push — master ( 4d12bd...38508b )
by Nils
05:01
created
src/Rules/Html/RegExExistsRule.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
     protected $contentTypes = array('text/html');
16 16
 
17 17
     /**
18
-     * @param int $string The string that the document must contain
19 18
      */
20 19
     public function init(array $regExs)
21 20
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     protected function doValidation(Response $response)
26 26
     {
27 27
         foreach ($this->regExs as $regEx) {
28
-            $this->assert(preg_match('^' . $regEx . '^', (string)$response->getBody()) > 0,
29
-                'The given regular expression (' . $regEx . ') was not found in this document.');
28
+            $this->assert(preg_match('^'.$regEx.'^', (string) $response->getBody()) > 0,
29
+                'The given regular expression ('.$regEx.') was not found in this document.');
30 30
         }
31 31
     }
32 32
 }
Please login to merge, or discard this patch.