Completed
Pull Request — master (#90)
by
unknown
03:21 queued 03:21
created
src/Rules/Xml/Sitemap/ValidRule.php 1 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.