Passed
Push — master ( 856b52...5c51b9 )
by Caen
03:00 queued 12s
created
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Concerns/ManagesHydeKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.