Completed
Pull Request — master (#92)
by
unknown
08:56
created
src/Rules/Xml/Sitemap/ValidRule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
     private function getSchema($isIndex)
28 28
     {
29 29
         if ($isIndex) {
30
-            return __DIR__ . '/' . self::INDEX;
30
+            return __DIR__.'/'.self::INDEX;
31 31
         }
32 32
 
33 33
         if ($this->strictMode) {
34
-            return __DIR__ . '/' . self::SCHEMA;
34
+            return __DIR__.'/'.self::SCHEMA;
35 35
         } else {
36
-            return __DIR__ . '/' . self::NON_STRICT_SCHEMA;
36
+            return __DIR__.'/'.self::NON_STRICT_SCHEMA;
37 37
         }
38 38
     }
39 39
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         if (!$valid) {
47 47
             $lastError = libxml_get_last_error();
48 48
             throw new ValidationFailedException(
49
-                'The given sitemap file (' . $filename . ') did not validate against the sitemap schema (last error: ' . str_replace("\n", '', $lastError->message) . ').');
49
+                'The given sitemap file ('.$filename.') did not validate against the sitemap schema (last error: '.str_replace("\n", '', $lastError->message).').');
50 50
         }
51 51
     }
52 52
 
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
         // sitemapindex or urlset
80 80
         if (preg_match('/<sitemapindex/', $body)) {
81 81
 
82
-            $this->validateBody($body, (string)$response->getUri());
82
+            $this->validateBody($body, (string) $response->getUri());
83 83
 
84 84
         } elseif (preg_match('/<urlset/', $body)) {
85
-            $this->validateBody($body, (string)$response->getUri(), FALSE);
85
+            $this->validateBody($body, (string) $response->getUri(), FALSE);
86 86
         }
87 87
     }
88 88
 }
Please login to merge, or discard this patch.