Passed
Branch code-quality (96f45d)
by Caen
02:59
created
packages/framework/src/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function compileStaticPages(): void
36 36
     {
37
-        $this->getDiscoveredModels()->each(function (string $pageClass) {
37
+        $this->getDiscoveredModels()->each(function(string $pageClass) {
38 38
             $this->compilePagesForClass($pageClass);
39 39
         });
40 40
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $this->withProgressBar(
62 62
             $collection,
63
-            function ($filepath) {
63
+            function($filepath) {
64 64
                 copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath)));
65 65
             }
66 66
         );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function getDiscoveredModels(): RouteCollection
74 74
     {
75
-        return $this->router->getRoutes()->map(function (Route $route) {
75
+        return $this->router->getRoutes()->map(function(Route $route) {
76 76
             return $route->getPageType();
77 77
         })->unique();
78 78
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /** @psalm-return \Closure(Route):string */
95 95
     protected function compileRoute(): \Closure
96 96
     {
97
-        return function (Route $route) {
97
+        return function(Route $route) {
98 98
             return (new StaticPageBuilder($route->getSourceModel()))->__invoke();
99 99
         };
100 100
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     protected function isItSafeToCleanOutputDirectory(): bool
108 108
     {
109
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
109
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
110 110
             $this->info('Output directory will not be emptied.');
111 111
 
112 112
             return false;
Please login to merge, or discard this patch.