Test Failed
Push — develop ( fc6448...2392c4 )
by Andrew
08:09
created
src/services/Sitemaps.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             Event::on(
95 95
                 UrlManager::class,
96 96
                 UrlManager::EVENT_REGISTER_SITE_URL_RULES,
97
-                function (RegisterUrlRulesEvent $event) {
97
+                function(RegisterUrlRulesEvent $event) {
98 98
                     Craft::debug(
99 99
                         'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
100 100
                         __METHOD__
@@ -351,15 +351,15 @@  discard block
 block discarded – undo
351 351
             // If we can't get a group, just use the current site
352 352
             if ($siteGroup === null) {
353 353
                 $sites = [Craft::$app->getSites()->getCurrentSite()];
354
-            } else  {
354
+            } else {
355 355
                 $sites = $siteGroup->getSites();
356 356
             }
357 357
         } else {
358 358
             $sites = Craft::$app->getSites()->getAllSites();
359 359
         }
360 360
 
361
-        foreach($sites as $site) {
362
-            $result .= 'sitemap: ' . $this->sitemapIndexUrlForSiteId($site->id) . PHP_EOL;
361
+        foreach ($sites as $site) {
362
+            $result .= 'sitemap: '.$this->sitemapIndexUrlForSiteId($site->id).PHP_EOL;
363 363
         }
364 364
 
365 365
         return rtrim($result, PHP_EOL);
Please login to merge, or discard this patch.