@@ -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 | ]); |
@@ -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) |
@@ -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); |
@@ -53,12 +53,12 @@ |
||
53 | 53 | ]; |
54 | 54 | } |
55 | 55 | |
56 | - protected function getTraitName(): array|string |
|
56 | + protected function getTraitName(): array | string |
|
57 | 57 | { |
58 | 58 | return Str::studly($this->argument('name')); |
59 | 59 | } |
60 | 60 | |
61 | - private function getClassNameWithoutNamespace(): array|string |
|
61 | + private function getClassNameWithoutNamespace(): array | string |
|
62 | 62 | { |
63 | 63 | return class_basename($this->getTraitName()); |
64 | 64 | } |
@@ -40,14 +40,14 @@ |
||
40 | 40 | { |
41 | 41 | $path = str_replace('\\', '/', $this->getDestinationFilePath()); |
42 | 42 | |
43 | - if (! $this->laravel['files']->isDirectory($dir = dirname($path))) { |
|
43 | + if (!$this->laravel['files']->isDirectory($dir = dirname($path))) { |
|
44 | 44 | $this->laravel['files']->makeDirectory($dir, 0777, true); |
45 | 45 | } |
46 | 46 | |
47 | 47 | $contents = $this->getTemplateContents(); |
48 | 48 | |
49 | 49 | try { |
50 | - $this->components->task("Generating file {$path}", function () use ($path, $contents) { |
|
50 | + $this->components->task("Generating file {$path}", function() use ($path, $contents) { |
|
51 | 51 | $overwriteFile = $this->hasOption('force') ? $this->option('force') : false; |
52 | 52 | (new FileGenerator($path, $contents))->withFileOverwrite($overwriteFile)->generate(); |
53 | 53 | }); |
@@ -53,12 +53,12 @@ |
||
53 | 53 | ]; |
54 | 54 | } |
55 | 55 | |
56 | - protected function getEnumName(): array|string |
|
56 | + protected function getEnumName(): array | string |
|
57 | 57 | { |
58 | 58 | return Str::studly($this->argument('name')); |
59 | 59 | } |
60 | 60 | |
61 | - private function getClassNameWithoutNamespace(): array|string |
|
61 | + private function getClassNameWithoutNamespace(): array | string |
|
62 | 62 | { |
63 | 63 | return class_basename($this->getEnumName()); |
64 | 64 | } |