Passed
Push — master ( a9db05...32ab90 )
by Caen
03:20 queued 13s
created
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +4 added lines, -4 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
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->needsDirectory(Hyde::siteMediaPath());
52 52
 
53 53
         $this->comment('Transferring Media Assets...');
54
-        $this->withProgressBar(MediaFile::files(), function (string $identifier): void {
54
+        $this->withProgressBar(MediaFile::files(), function(string $identifier): void {
55 55
             $sitePath = Hyde::siteMediaPath($identifier);
56 56
             $this->needsParentDirectory($sitePath);
57 57
             copy(Hyde::mediaPath($identifier), $sitePath);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $collection = Routes::getRoutes($pageClass);
71 71
 
72
-        $this->withProgressBar($collection, function (Route $route): void {
72
+        $this->withProgressBar($collection, function(Route $route): void {
73 73
             (new StaticPageBuilder($route->getPage()))->__invoke();
74 74
         });
75 75
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */
85 85
     protected function getPageTypes(): array
86 86
     {
87
-        return Hyde::pages()->map(function (HydePage $page): string {
87
+        return Hyde::pages()->map(function(HydePage $page): string {
88 88
             return $page::class;
89 89
         })->unique()->values()->toArray();
90 90
     }
Please login to merge, or discard this patch.
packages/framework/src/Support/Filesystem/MediaFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function getContentLength(): int
57 57
     {
58
-        if (! is_file($this->getAbsolutePath())) {
58
+        if (!is_file($this->getAbsolutePath())) {
59 59
             throw new FileNotFoundException(message: "Could not get the content length of file [$this->path]");
60 60
         }
61 61
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     protected static function discoverMediaAssetFiles(): array
98 98
     {
99
-        return collect(static::getMediaAssetFiles())->mapWithKeys(function (string $filepath): array {
99
+        return collect(static::getMediaAssetFiles())->mapWithKeys(function(string $filepath): array {
100 100
             $file = static::make($filepath);
101 101
 
102 102
             return [$file->getIdentifier() => $file];
Please login to merge, or discard this patch.