@@ -47,8 +47,7 @@ discard block |
||
| 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 |
||
| 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 | } |