@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | protected function findTasksInAppDirectory(): array |
107 | 107 | { |
108 | - return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function (string $file): string { |
|
108 | + return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function(string $file): string { |
|
109 | 109 | return static::pathToClassName($file); |
110 | 110 | })->toArray(); |
111 | 111 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | public function compileStaticPages(): void |
42 | 42 | { |
43 | - collect($this->getPageTypes())->each(function (string $pageClass): void { |
|
43 | + collect($this->getPageTypes())->each(function(string $pageClass): void { |
|
44 | 44 | $this->compilePagesForClass($pageClass); |
45 | 45 | }); |
46 | 46 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $this->needsDirectory(Hyde::siteMediaPath()); |
51 | 51 | |
52 | 52 | $this->comment('Transferring Media Assets...'); |
53 | - $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void { |
|
53 | + $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void { |
|
54 | 54 | $sitePath = Hyde::siteMediaPath(Str::after($filepath, Hyde::mediaPath())); |
55 | 55 | $this->needsParentDirectory($sitePath); |
56 | 56 | copy($filepath, $sitePath); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | $collection = $this->router->getRoutes($pageClass); |
70 | 70 | |
71 | - $this->withProgressBar($collection, function (Route $route): void { |
|
71 | + $this->withProgressBar($collection, function(Route $route): void { |
|
72 | 72 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
73 | 73 | }); |
74 | 74 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */ |
84 | 84 | protected function getPageTypes(): array |
85 | 85 | { |
86 | - return Hyde::pages()->map(function (HydePage $page): string { |
|
86 | + return Hyde::pages()->map(function(HydePage $page): string { |
|
87 | 87 | return $page::class; |
88 | 88 | })->unique()->values()->toArray(); |
89 | 89 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | $this->startClock(); |
41 | 41 | |
42 | - if ($output && ! $this->output) { |
|
42 | + if ($output && !$this->output) { |
|
43 | 43 | $this->setOutput($output); |
44 | 44 | } |
45 | 45 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | protected function isItSafeToCleanOutputDirectory(): bool |
34 | 34 | { |
35 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
35 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
36 | 36 | $this->info('Output directory will not be emptied.'); |
37 | 37 | |
38 | 38 | return false; |