@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | public function compileStaticPages(): void |
| 41 | 41 | { |
| 42 | - $this->getClassNamesForDiscoveredPageModels()->each(function (string $pageClass) { |
|
| 42 | + $this->getClassNamesForDiscoveredPageModels()->each(function(string $pageClass) { |
|
| 43 | 43 | $this->compilePagesForClass($pageClass); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $this->comment('Transferring Media Assets...'); |
| 64 | 64 | |
| 65 | - $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void { |
|
| 65 | + $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void { |
|
| 66 | 66 | copy($filepath, Hyde::sitePath('media/'.basename($filepath))); |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function getClassNamesForDiscoveredPageModels(): Collection |
| 76 | 76 | { |
| 77 | - return $this->router->getRoutes()->map(function (Route $route): string { |
|
| 77 | + return $this->router->getRoutes()->map(function(Route $route): string { |
|
| 78 | 78 | return $route->getPageClass(); |
| 79 | 79 | })->unique(); |
| 80 | 80 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | $collection = $this->router->getRoutes($pageClass); |
| 90 | 90 | |
| 91 | - $this->withProgressBar($collection, function (Route $route): void { |
|
| 91 | + $this->withProgressBar($collection, function(Route $route): void { |
|
| 92 | 92 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
| 93 | 93 | }); |
| 94 | 94 | |
@@ -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; |