Completed
Pull Request — master (#87)
by
unknown
03:01
created
src/Rules/Html/RegExNotExistsRule.php 1 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 found in this document.');
28
+            $this->assert(preg_match('^'.$regEx.'^', (string) $response->getBody()) === 0,
29
+                'The given regular expression ('.$regEx.') was found in this document.');
30 30
         }
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Rules/Xml/Sitemap/ValidRule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
     {
19 19
         switch ($name) {
20 20
             case 'map':
21
-                return __DIR__ . '/' . self::SITEMAP;
21
+                return __DIR__.'/'.self::SITEMAP;
22 22
             case 'index':
23 23
             default:
24
-                return __DIR__ . '/' . self::SITEINDEX;
24
+                return __DIR__.'/'.self::SITEINDEX;
25 25
         }
26 26
     }
27 27
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         $lastError = libxml_get_last_error();
44 44
         if ($lastError) {
45 45
             throw new ValidationFailedException(
46
-                'The given sitemap file is not well formed (last error: ' .
47
-                str_replace("\n", '', $lastError->message) . ').');
46
+                'The given sitemap file is not well formed (last error: '.
47
+                str_replace("\n", '', $lastError->message).').');
48 48
         }
49 49
 
50 50
         if (preg_match('/<sitemapindex/', $body)) {
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
             $lastError = libxml_get_last_error();
60 60
             $lastErrorMessage = str_replace("\n", '', $lastError->message);
61 61
             throw new ValidationFailedException(
62
-                'The given sitemap file did not validate vs. ' .
63
-                $this->getSchema() . ' (last error: ' .
64
-                $lastErrorMessage . ').');
62
+                'The given sitemap file did not validate vs. '.
63
+                $this->getSchema().' (last error: '.
64
+                $lastErrorMessage.').');
65 65
         }
66 66
     }
67 67
 }
Please login to merge, or discard this patch.