Passed
Push — master ( e3b121...219a49 )
by Caen
03:57 queued 14s
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::siteMediaPath());
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::siteMediaPath(Str::after($filepath, Hyde::mediaPath()));
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.
framework/src/Framework/Features/Blogging/Models/LocalFeaturedImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
     protected function validatedStoragePath(): string
48 48
     {
49
-        if (! file_exists($this->storagePath())) {
49
+        if (!file_exists($this->storagePath())) {
50 50
             throw new FileNotFoundException(sprintf('Image at %s does not exist', $this->replaceSlashes(Hyde::pathToRelative($this->storagePath()))));
51 51
         }
52 52
 
Please login to merge, or discard this patch.