Passed
Branch master (1edfee)
by Clive
11:22
created
src/SitemapListener.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,9 @@
 block discarded – undo
60 60
             if ($this->isAsset($path) && !$this->isExcluded($path)) {
61 61
                 // Check if a file extension is present
62 62
                 $ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));
63
-                if (in_array($ext, $supported_extensions))
64
-                $sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::MONTHLY);
63
+                if (in_array($ext, $supported_extensions)) {
64
+                                $sitemap->addItem(rtrim($baseUrl, '/') . $path, time(), Sitemap::MONTHLY);
65
+                }
65 66
             }
66 67
         });
67 68
 
Please login to merge, or discard this patch.