Completed
Pull Request — master (#90)
by
unknown
03:21 queued 03:21
created
src/Rules/Xml/Sitemap/ValidRule.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * @param string
40
+     * @param \Psr\Http\Message\StreamInterface $body
40 41
      * @return array
41 42
      */
42 43
     private function getLocations($body) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         if (isset($xmlValues['sitemap']['loc'])) {
49 49
             $locations[] = $xmlValues['sitemap']['loc'];
50
-        }
51
-        else {
50
+        } else {
52 51
             foreach ($xmlValues['sitemap'] AS $sitemap) {
53 52
                 $locations[] = $sitemap['loc'];
54 53
             }
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
                 $singleSitemapXml = file_get_contents($sitemapUrl);
71 70
                 $this->validateBody($singleSitemapXml);
72 71
             }
73
-        }
74
-        elseif (preg_match('/<urlset/', $body)) {
72
+        } elseif (preg_match('/<urlset/', $body)) {
75 73
             $this->validateBody($body);
76 74
         }
77 75
     }
Please login to merge, or discard this patch.