Passed
Push — master ( 69e5ba...ec3c40 )
by Caen
03:39 queued 13s
created
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 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
-        $this->getClassNamesForDiscoveredPageModels()->each(function (string $pageClass) {
42
+        $this->getClassNamesForDiscoveredPageModels()->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
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function getClassNamesForDiscoveredPageModels(): Collection
76 76
     {
77
-        return $this->router->getRoutes()->map(function (Route $route): string {
77
+        return $this->router->getRoutes()->map(function(Route $route): string {
78 78
             return $route->getPageClass();
79 79
         })->unique();
80 80
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         $collection = $this->router->getRoutes($pageClass);
90 90
 
91
-        $this->withProgressBar($collection, function (Route $route): void {
91
+        $this->withProgressBar($collection, function(Route $route): void {
92 92
             (new StaticPageBuilder($route->getPage()))->__invoke();
93 93
         });
94 94
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     protected function isItSafeToCleanOutputDirectory(): bool
104 104
     {
105
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
105
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
106 106
             $this->info('Output directory will not be emptied.');
107 107
 
108 108
             return false;
Please login to merge, or discard this patch.