Completed
Push — master ( 20342f...d4c7b2 )
by Nils
03:18
created
src/Rules/Xml/XmlCheckRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
     public function doValidation(Response $response)
16 16
     {
17 17
         $domDocument = new \DOMDocument();
18
-        $success = @$domDocument->loadXML((string)$response->getBody());  // true/false
18
+        $success = @$domDocument->loadXML((string) $response->getBody()); // true/false
19 19
 
20 20
         $lastError = libxml_get_last_error();
21 21
         if (!$success || $lastError) {
22
-            throw new \RuntimeException('The xml file ' . $response->getUri() . ' is not well formed (last error: ' .
23
-                str_replace("\n", '', $lastError->message) . ').');
22
+            throw new \RuntimeException('The xml file '.$response->getUri().' is not well formed (last error: '.
23
+                str_replace("\n", '', $lastError->message).').');
24 24
         }
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Rules/Xml/Sitemap/ValidRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     private function getSchema()
19 19
     {
20
-        return __DIR__ . '/' . self::SCHEMA;
20
+        return __DIR__.'/'.self::SCHEMA;
21 21
     }
22 22
 
23 23
     private function validateBody($body, $filename)
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
         $lastError = libxml_get_last_error();
29 29
         if ($lastError) {
30 30
             throw new ValidationFailedException(
31
-                'The given sitemap file (' . $filename . ') is not well formed (last error: ' . str_replace("\n", '', $lastError->message) . ').');
31
+                'The given sitemap file ('.$filename.') is not well formed (last error: '.str_replace("\n", '', $lastError->message).').');
32 32
         }
33 33
         $valid = @$dom->schemaValidate($this->getSchema());
34 34
         if (!$valid) {
35 35
             $lastError = libxml_get_last_error();
36 36
             throw new ValidationFailedException(
37
-                'The given sitemap file (' . $filename . ') did not validate against the sitemap schema (last error: ' . str_replace("\n", '', $lastError->message) . ').');
37
+                'The given sitemap file ('.$filename.') did not validate against the sitemap schema (last error: '.str_replace("\n", '', $lastError->message).').');
38 38
         }
39 39
     }
40 40
 
Please login to merge, or discard this patch.