@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 |
@@ -99,7 +99,7 @@ |
||
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 |