@@ -28,7 +28,7 @@ |
||
28 | 28 | ? '<fg=red;options=bold>Disabled</>' |
29 | 29 | : '<fg=green;options=bold>Enabled</>'; |
30 | 30 | |
31 | - $this->components->task("Enabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) { |
|
31 | + $this->components->task("Enabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) { |
|
32 | 32 | $module->enable(); |
33 | 33 | }); |
34 | 34 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $module = $this->getModuleModel($name); |
26 | 26 | |
27 | - $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
27 | + $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
28 | 28 | $this->laravel['modules']->forgetUsed($module); |
29 | 29 | }); |
30 | 30 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function installFromFile(): int |
58 | 58 | { |
59 | - if (! file_exists($path = base_path('modules.json'))) { |
|
59 | + if (!file_exists($path = base_path('modules.json'))) { |
|
60 | 60 | $this->error("File 'modules.json' does not exist in your project root."); |
61 | 61 | |
62 | 62 | return E_ERROR; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $installer->run(); |
112 | 112 | |
113 | - if (! $this->option('no-update')) { |
|
113 | + if (!$this->option('no-update')) { |
|
114 | 114 | $this->call('module:update', [ |
115 | 115 | 'module' => $installer->getModuleName(), |
116 | 116 | ]); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function executeAction($name): void |
15 | 15 | { |
16 | 16 | $module = $this->getModuleModel($name); |
17 | - $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
17 | + $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
18 | 18 | $module->delete(); |
19 | 19 | }); |
20 | 20 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $module = $this->getModuleModel($name); |
27 | 27 | |
28 | - $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
28 | + $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
29 | 29 | with(new AssetPublisher($module)) |
30 | 30 | ->setRepository($this->laravel['modules']) |
31 | 31 | ->setConsole($this) |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $module = $this->getModuleModel($name); |
28 | 28 | |
29 | - $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
29 | + $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
30 | 30 | with(new MigrationPublisher(new Migrator($module, $this->getLaravel()))) |
31 | 31 | ->setRepository($this->laravel['modules']) |
32 | 32 | ->setConsole($this) |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $module = $this->getModuleModel($name); |
27 | 27 | |
28 | - $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
28 | + $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
29 | 29 | with(new LangPublisher($module)) |
30 | 30 | ->setRepository($this->laravel['modules']) |
31 | 31 | ->setConsole($this) |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | $module = $this->getModuleModel($name); |
26 | 26 | |
27 | - $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
27 | + $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
28 | 28 | |
29 | 29 | $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json'; |
30 | 30 | |
@@ -32,13 +32,13 @@ discard block |
||
32 | 32 | |
33 | 33 | $autoload = data_get($composer, 'autoload.psr-4'); |
34 | 34 | |
35 | - if (! $autoload) { |
|
35 | + if (!$autoload) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | 39 | $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName()); |
40 | 40 | |
41 | - if (! array_key_exists($key_name_with_app, $autoload)) { |
|
41 | + if (!array_key_exists($key_name_with_app, $autoload)) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 |
@@ -169,7 +169,7 @@ |
||
169 | 169 | { |
170 | 170 | $fillable = $this->option('fillable'); |
171 | 171 | |
172 | - if (! is_null($fillable)) { |
|
172 | + if (!is_null($fillable)) { |
|
173 | 173 | $arrays = explode(',', $fillable); |
174 | 174 | |
175 | 175 | return json_encode($arrays); |