Passed
Branch fix-scrutinizer-issues (9b8d87)
by Caen
05:04
created
packages/framework/src/Commands/HydeBuildSitemapCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $actionTime = microtime(true);
38 38
 
39
-        if (! $this->runPreflightCheck()) {
39
+        if (!$this->runPreflightCheck()) {
40 40
             return 1;
41 41
         }
42 42
 
@@ -49,17 +49,17 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function runPreflightCheck(): bool
51 51
     {
52
-        if (! SitemapService::canGenerateSitemap()) {
52
+        if (!SitemapService::canGenerateSitemap()) {
53 53
             $this->error('Cannot generate sitemap.xml, please check your configuration.');
54 54
 
55
-            if (! Hyde::hasSiteUrl()) {
55
+            if (!Hyde::hasSiteUrl()) {
56 56
                 $this->warn('Hint: You don\'t have a site URL configured. Check config/hyde.php');
57 57
             }
58 58
             if (config('site.generate_sitemap', true) !== true) {
59 59
                 $this->warn('Hint: You have disabled sitemap generation in config/hyde.php');
60 60
                 $this->line(' > You can enable sitemap generation by setting <info>`site.generate_sitemap`</> to <info>`true`</>');
61 61
             }
62
-            if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
62
+            if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
63 63
                 $this->warn('Hint: You don\'t have the <info>`simplexml`</> extension installed. Check your PHP installation.');
64 64
             }
65 65
 
Please login to merge, or discard this patch.
packages/framework/src/Services/RssFeedService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     protected static function xmlEscape(string $string): string
101 101
     {
102
-        return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8');
102
+        return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8');
103 103
     }
104 104
 
105 105
     public static function getDescription(): string
Please login to merge, or discard this patch.