@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | public function compileStaticPages(): void |
42 | 42 | { |
43 | - collect(Hyde::getDiscoveredPageTypes())->each(function (string $pageClass) { |
|
43 | + collect(Hyde::getDiscoveredPageTypes())->each(function(string $pageClass) { |
|
44 | 44 | $this->compilePagesForClass($pageClass); |
45 | 45 | }); |
46 | 46 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->needsDirectory(Hyde::sitePath('media')); |
63 | 63 | |
64 | 64 | $this->comment('Transferring Media Assets...'); |
65 | - $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void { |
|
65 | + $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void { |
|
66 | 66 | $sitePath = Hyde::sitePath('media/'.unslash(Str::after($filepath, Hyde::path('_media')))); |
67 | 67 | $this->needsParentDirectory($sitePath); |
68 | 68 | copy($filepath, $sitePath); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $collection = $this->router->getRoutes($pageClass); |
82 | 82 | |
83 | - $this->withProgressBar($collection, function (Route $route): void { |
|
83 | + $this->withProgressBar($collection, function(Route $route): void { |
|
84 | 84 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
85 | 85 | }); |
86 | 86 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | protected function isItSafeToCleanOutputDirectory(): bool |
96 | 96 | { |
97 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
97 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
98 | 98 | $this->info('Output directory will not be emptied.'); |
99 | 99 | |
100 | 100 | return false; |