Passed
Push — master ( 4a4881...486f33 )
by Caen
03:05 queued 13s
created
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
63 63
         $this->needsDirectory(Hyde::sitePath('media'));
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::sitePath('media/'.unslash(Str::after($filepath, Hyde::path('_media'))));
68 68
             $this->needsParentDirectory($sitePath);
69 69
             copy($filepath, $sitePath);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.