Passed
Push — master ( 24a60c...330ee8 )
by Caen
03:15 queued 12s
created
packages/framework/src/Console/Commands/PublishHomepageCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $selected = $this->parseSelection();
58 58
 
59
-        if (! $this->canExistingFileBeOverwritten()) {
59
+        if (!$this->canExistingFileBeOverwritten()) {
60 60
             $this->error('A modified index.blade.php file already exists. Use --force to overwrite.');
61 61
 
62 62
             return 409;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         Artisan::call('vendor:publish', [
68 68
             '--tag' => $this->options[$selected]['group'] ?? $selected,
69 69
             '--force' => true, // Todo add force state dynamically depending on existing file state
70
-        ], ! $tagExists ? $this->output : null);
70
+        ], !$tagExists ? $this->output : null);
71 71
 
72 72
         if ($tagExists) {
73 73
             $this->infoComment("Published page [$selected]");
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     protected function formatPublishableChoices(): array
96 96
     {
97
-        return $this->getTemplateOptions()->map(function (array $option, string $key): string {
97
+        return $this->getTemplateOptions()->map(function(array $option, string $key): string {
98 98
             return  "<comment>$key</comment>: {$option['description']}";
99 99
         })->values()->toArray();
100 100
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             return true;
116 116
         }
117 117
 
118
-        if (! file_exists(Hyde::getBladePagePath('index.blade.php'))) {
118
+        if (!file_exists(Hyde::getBladePagePath('index.blade.php'))) {
119 119
             return true;
120 120
         }
121 121
 
Please login to merge, or discard this patch.