@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | */ |
| 218 | 218 | public function hasSiteUrl(): bool |
| 219 | 219 | { |
| 220 | - return ! blank(config('site.url')); |
|
| 220 | + return !blank(config('site.url')); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -252,11 +252,11 @@ discard block |
||
| 252 | 252 | */ |
| 253 | 253 | public function copy(string $from, string $to, bool $force = false): bool|int |
| 254 | 254 | { |
| 255 | - if (! file_exists($from)) { |
|
| 255 | + if (!file_exists($from)) { |
|
| 256 | 256 | return 404; |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | - if (file_exists($to) && ! $force) { |
|
| 259 | + if (file_exists($to) && !$force) { |
|
| 260 | 260 | return 409; |
| 261 | 261 | } |
| 262 | 262 | |
@@ -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 | |