@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function compileStaticPages(): void |
43 | 43 | { |
44 | - collect($this->getPageTypes())->each(function (string $pageClass): void { |
|
44 | + collect($this->getPageTypes())->each(function(string $pageClass): void { |
|
45 | 45 | $this->compilePagesForClass($pageClass); |
46 | 46 | }); |
47 | 47 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $this->needsDirectory(Hyde::siteMediaPath()); |
64 | 64 | |
65 | 65 | $this->comment('Transferring Media Assets...'); |
66 | - $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void { |
|
66 | + $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void { |
|
67 | 67 | $sitePath = Hyde::siteMediaPath(Str::after($filepath, Hyde::mediaPath())); |
68 | 68 | $this->needsParentDirectory($sitePath); |
69 | 69 | copy($filepath, $sitePath); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | $collection = $this->router->getRoutes($pageClass); |
83 | 83 | |
84 | - $this->withProgressBar($collection, function (Route $route): void { |
|
84 | + $this->withProgressBar($collection, function(Route $route): void { |
|
85 | 85 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
86 | 86 | }); |
87 | 87 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | protected function isItSafeToCleanOutputDirectory(): bool |
97 | 97 | { |
98 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
98 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
99 | 99 | $this->info('Output directory will not be emptied.'); |
100 | 100 | |
101 | 101 | return false; |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */ |
127 | 127 | protected function getPageTypes(): array |
128 | 128 | { |
129 | - return Hyde::pages()->map(function (HydePage $page): string { |
|
129 | + return Hyde::pages()->map(function(HydePage $page): string { |
|
130 | 130 | return $page::class; |
131 | 131 | })->unique()->values()->toArray(); |
132 | 132 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | protected function validatedStoragePath(): string |
48 | 48 | { |
49 | - if (! file_exists($this->storagePath())) { |
|
49 | + if (!file_exists($this->storagePath())) { |
|
50 | 50 | throw new FileNotFoundException(sprintf('Image at %s does not exist', $this->replaceSlashes(Hyde::pathToRelative($this->storagePath())))); |
51 | 51 | } |
52 | 52 |