Passed
Push — master ( 99cab5...2782fc )
by Caen
04:06 queued 13s
created
packages/framework/src/Framework/Services/BuildTaskService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/BuildTasks/BuildTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.