@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | public function compileStaticPages(): void |
| 41 | 41 | { |
| 42 | - collect(Hyde::getDiscoveredPageTypes())->each(function (string $pageClass) { |
|
| 42 | + collect(Hyde::getDiscoveredPageTypes())->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 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $collection = $this->router->getRoutes($pageClass); |
| 80 | 80 | |
| 81 | - $this->withProgressBar($collection, function (Route $route): void { |
|
| 81 | + $this->withProgressBar($collection, function(Route $route): void { |
|
| 82 | 82 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
| 83 | 83 | }); |
| 84 | 84 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | protected function isItSafeToCleanOutputDirectory(): bool |
| 94 | 94 | { |
| 95 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 95 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 96 | 96 | $this->info('Output directory will not be emptied.'); |
| 97 | 97 | |
| 98 | 98 | return false; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */ |
| 60 | 60 | public function getDiscoveredPageTypes(): array |
| 61 | 61 | { |
| 62 | - return $this->pages()->map(function (HydePage $page): string { |
|
| 62 | + return $this->pages()->map(function(HydePage $page): string { |
|
| 63 | 63 | return $page::class; |
| 64 | 64 | })->unique()->values()->toArray(); |
| 65 | 65 | } |