@@ -22,12 +22,12 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $module = $this->getModuleModel($name); |
| 24 | 24 | |
| 25 | - $this->components->task("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 25 | + $this->components->task("Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 26 | 26 | $this->laravel['modules']->setUsed($module); |
| 27 | 27 | }); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - function getInfo(): string|null |
|
| 30 | + function getInfo(): string | null |
|
| 31 | 31 | { |
| 32 | 32 | return 'Using Module ...'; |
| 33 | 33 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $module = $this->getModuleModel($name); |
| 26 | 26 | |
| 27 | - $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 27 | + $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 28 | 28 | with(new LangPublisher($module)) |
| 29 | 29 | ->setRepository($this->laravel['modules']) |
| 30 | 30 | ->setConsole($this) |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | }); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - function getInfo(): string|null |
|
| 35 | + function getInfo(): string | null |
|
| 36 | 36 | { |
| 37 | 37 | return 'Publishing module translations ...'; |
| 38 | 38 | } |
@@ -10,12 +10,12 @@ |
||
| 10 | 10 | public function executeAction($name): void |
| 11 | 11 | { |
| 12 | 12 | $module = $this->getModuleModel($name); |
| 13 | - $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 13 | + $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 14 | 14 | $module->delete(); |
| 15 | 15 | }); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function getInfo(): string|null |
|
| 18 | + public function getInfo(): string | null |
|
| 19 | 19 | { |
| 20 | 20 | return 'deleting module ...'; |
| 21 | 21 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ]); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - function getInfo(): string|null |
|
| 33 | + function getInfo(): string | null |
|
| 34 | 34 | { |
| 35 | 35 | return 'Publishing module config files ...'; |
| 36 | 36 | } |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $module = $this->getModuleModel($name); |
| 28 | 28 | |
| 29 | - $this->components->task("Running Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 29 | + $this->components->task("Running Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 30 | 30 | $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath()); |
| 31 | 31 | |
| 32 | 32 | if ($this->option('subpath')) { |
| 33 | - $path = $path . "/" . $this->option("subpath"); |
|
| 33 | + $path = $path."/".$this->option("subpath"); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $this->call('migrate', [ |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $database = $this->option('database'); |
| 34 | 34 | |
| 35 | - if (! empty($database)) { |
|
| 35 | + if (!empty($database)) { |
|
| 36 | 36 | $migrator->setDatabase($database); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $this->components->warn("Nothing to rollback on module <fg=cyan;options=bold>{$module->getName()}</>"); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - public function getInfo(): string|null |
|
| 52 | + public function getInfo(): string | null |
|
| 53 | 53 | { |
| 54 | 54 | return NULL; |
| 55 | 55 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $database = $this->option('database'); |
| 34 | 34 | |
| 35 | - if (! empty($database)) { |
|
| 35 | + if (!empty($database)) { |
|
| 36 | 36 | $migrator->setDatabase($database); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - public function getInfo(): string|null |
|
| 53 | + public function getInfo(): string | null |
|
| 54 | 54 | { |
| 55 | 55 | return NULL; |
| 56 | 56 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | ]); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function getInfo(): string|null |
|
| 41 | + public function getInfo(): string | null |
|
| 42 | 42 | { |
| 43 | 43 | return NULL; |
| 44 | 44 | } |
@@ -33,12 +33,12 @@ |
||
| 33 | 33 | ? '<fg=red;options=bold>Disabled</>' |
| 34 | 34 | : '<fg=green;options=bold>Enabled</>'; |
| 35 | 35 | |
| 36 | - $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) { |
|
| 36 | + $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) { |
|
| 37 | 37 | $module->disable(); |
| 38 | 38 | }); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - function getInfo(): string|null |
|
| 41 | + function getInfo(): string | null |
|
| 42 | 42 | { |
| 43 | 43 | return 'Disabling module ...'; |
| 44 | 44 | } |