@@ -135,7 +135,7 @@ |
||
135 | 135 | $process->setTimeout($this->timeout); |
136 | 136 | |
137 | 137 | if ($this->console instanceof Command) { |
138 | - $process->run(function ($type, $line) { |
|
138 | + $process->run(function($type, $line) { |
|
139 | 139 | $this->console->line($line); |
140 | 140 | }); |
141 | 141 | } |
@@ -169,17 +169,17 @@ |
||
169 | 169 | */ |
170 | 170 | public function publish() |
171 | 171 | { |
172 | - if (! $this->console instanceof Command) { |
|
172 | + if (!$this->console instanceof Command) { |
|
173 | 173 | $message = "The 'console' property must instance of \\Illuminate\\Console\\Command."; |
174 | 174 | |
175 | 175 | throw new \RuntimeException($message); |
176 | 176 | } |
177 | 177 | |
178 | - if (! $this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) { |
|
178 | + if (!$this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) { |
|
179 | 179 | return; |
180 | 180 | } |
181 | 181 | |
182 | - if (! $this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) { |
|
182 | + if (!$this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) { |
|
183 | 183 | $this->getFilesystem()->makeDirectory($destinationPath, 0775, true); |
184 | 184 | } |
185 | 185 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $concatenatedPackages .= "\"{$name}:{$version}\" "; |
45 | 45 | } |
46 | 46 | |
47 | - if (! empty($concatenatedPackages)) { |
|
47 | + if (!empty($concatenatedPackages)) { |
|
48 | 48 | $this->run("composer require {$concatenatedPackages}{$this->isComposerSilenced()}"); |
49 | 49 | } |
50 | 50 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $concatenatedPackages .= "\"{$name}:{$version}\" "; |
62 | 62 | } |
63 | 63 | |
64 | - if (! empty($concatenatedPackages)) { |
|
64 | + if (!empty($concatenatedPackages)) { |
|
65 | 65 | $this->run("composer require --dev {$concatenatedPackages}{$this->isComposerSilenced()}"); |
66 | 66 | } |
67 | 67 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function handle(): int |
29 | 29 | { |
30 | 30 | $this->components->twoColumnDetail('<fg=gray>Status / Name</>', '<fg=gray>Path / priority</>'); |
31 | - collect($this->getRows())->each(function ($row) { |
|
31 | + collect($this->getRows())->each(function($row) { |
|
32 | 32 | |
33 | 33 | $this->components->twoColumnDetail("[{$row[1]}] {$row[0]}", "{$row[3]} [{$row[2]}]"); |
34 | 34 | }); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | // This checks if we are running on a Laravel Vapor managed instance |
19 | 19 | // and sets the path to a writable one (services path is not on a writable storage in Vapor). |
20 | - if (! is_null(env('VAPOR_MAINTENANCE_MODE', null))) { |
|
20 | + if (!is_null(env('VAPOR_MAINTENANCE_MODE', null))) { |
|
21 | 21 | return Str::replaceLast('config.php', $this->getSnakeName().'_module.php', $this->app->getCachedConfigPath()); |
22 | 22 | } |
23 | 23 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function generateDirectory($dir, $success, $error): int |
61 | 61 | { |
62 | - if (! $this->laravel['files']->isDirectory($dir)) { |
|
62 | + if (!$this->laravel['files']->isDirectory($dir)) { |
|
63 | 63 | $this->laravel['files']->makeDirectory($dir, 0755, true, true); |
64 | 64 | |
65 | 65 | $this->components->info($success); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $module = $this->getModuleModel($name); |
26 | 26 | |
27 | - $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
27 | + $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
28 | 28 | $this->laravel['modules']->update($module); |
29 | 29 | }); |
30 | 30 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | ? '<fg=red;options=bold>Disabled</>' |
36 | 36 | : '<fg=green;options=bold>Enabled</>'; |
37 | 37 | |
38 | - $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) { |
|
38 | + $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) { |
|
39 | 39 | $module->disable(); |
40 | 40 | }); |
41 | 41 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $module = $this->getModuleModel($name); |
26 | 26 | |
27 | - $this->components->task("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
27 | + $this->components->task("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
28 | 28 | $this->laravel['modules']->setUsed($module); |
29 | 29 | }); |
30 | 30 | } |