@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function compileStaticPages(): void |
| 36 | 36 | { |
| 37 | - $this->getDiscoveredModels()->each(function (string $pageClass) { |
|
| 37 | + $this->getDiscoveredModels()->each(function(string $pageClass) { |
|
| 38 | 38 | $this->compilePagesForClass($pageClass); |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $this->withProgressBar( |
| 62 | 62 | $collection, |
| 63 | - function ($filepath) { |
|
| 63 | + function($filepath) { |
|
| 64 | 64 | copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath))); |
| 65 | 65 | } |
| 66 | 66 | ); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | protected function getDiscoveredModels(): Collection |
| 71 | 71 | { |
| 72 | - return $this->router->getRoutes()->map(function (Route $route) { |
|
| 72 | + return $this->router->getRoutes()->map(function(Route $route) { |
|
| 73 | 73 | return $route->getPageType(); |
| 74 | 74 | })->unique(); |
| 75 | 75 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | protected function compileRoute(): \Closure |
| 92 | 92 | { |
| 93 | - return function (Route $route) { |
|
| 93 | + return function(Route $route) { |
|
| 94 | 94 | return (new StaticPageBuilder($route->getSourceModel()))->__invoke(); |
| 95 | 95 | }; |
| 96 | 96 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | protected function isItSafeToCleanOutputDirectory(): bool |
| 104 | 104 | { |
| 105 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 105 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 106 | 106 | $this->info('Output directory will not be emptied.'); |
| 107 | 107 | |
| 108 | 108 | return false; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | public function __construct() |
| 22 | 22 | { |
| 23 | - if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) { |
|
| 23 | + if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) { |
|
| 24 | 24 | throw new \Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.'); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | protected static function xmlEscape(string $string): string |
| 107 | 107 | { |
| 108 | - return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8'); |
|
| 108 | + return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8'); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | public static function getDescription(): string |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function __construct() |
| 27 | 27 | { |
| 28 | - if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) { |
|
| 28 | + if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) { |
|
| 29 | 29 | throw new \Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.'); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function generate(): static |
| 39 | 39 | { |
| 40 | - Route::all()->each(function ($route) { |
|
| 40 | + Route::all()->each(function($route) { |
|
| 41 | 41 | $this->addRoute($route); |
| 42 | 42 | }); |
| 43 | 43 | |