Passed
Push — v3 ( 01a338...22e12d )
by Andrew
53:06 queued 24:15
created
src/models/SitemapTemplate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $request = Craft::$app->getRequest();
111 111
         $metaBundle = Seomatic::$plugin->metaBundles->getMetaBundleBySourceHandle($type, $handle, $siteId);
112 112
         // If it doesn't exist, throw a 404
113
-        if ($metaBundle === null ) {
113
+        if ($metaBundle === null) {
114 114
             if ($request->isCpRequest || $request->isConsoleRequest) {
115 115
                 return '';
116 116
             }
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
             // Return an empty XML document
195 195
             $lines[] = '<?xml version="1.0" encoding="UTF-8"?>';
196 196
             $lines[] = '<?xml-stylesheet type="text/xsl" href="sitemap-empty.xsl"?>';
197
-            $lines[] = '<!-- ' . Craft::t('seomatic', 'This sitemap has not been generated yet.') . ' -->';
198
-            $lines[] = '<!-- ' . Craft::t('seomatic', 'If you are seeing this in local dev or an') . ' -->';
199
-            $lines[] = '<!-- ' . Craft::t('seomatic', 'environment with `devMode` on, caches only') . ' -->';
200
-            $lines[] = '<!-- ' . Craft::t('seomatic', 'last for 30 seconds in local dev, so it is') . ' -->';
201
-            $lines[] = '<!-- ' . Craft::t('seomatic', 'normal for the sitemap to not be cached.') . ' -->';
197
+            $lines[] = '<!-- '.Craft::t('seomatic', 'This sitemap has not been generated yet.').' -->';
198
+            $lines[] = '<!-- '.Craft::t('seomatic', 'If you are seeing this in local dev or an').' -->';
199
+            $lines[] = '<!-- '.Craft::t('seomatic', 'environment with `devMode` on, caches only').' -->';
200
+            $lines[] = '<!-- '.Craft::t('seomatic', 'last for 30 seconds in local dev, so it is').' -->';
201
+            $lines[] = '<!-- '.Craft::t('seomatic', 'normal for the sitemap to not be cached.').' -->';
202 202
             $lines[] = '<urlset>';
203 203
             $lines[] = '</urlset>';
204 204
             $lines = implode("\r\n", $lines);
Please login to merge, or discard this patch.