@@ -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); |
@@ -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 | } |
@@ -53,12 +53,12 @@ |
||
| 53 | 53 | ]; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - protected function getInterfaceName(): array|string |
|
| 56 | + protected function getInterfaceName(): 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->getInterfaceName()); |
| 64 | 64 | } |
@@ -54,12 +54,12 @@ |
||
| 54 | 54 | ]; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - protected function getRepositoryName(): array|string |
|
| 57 | + protected function getRepositoryName(): array | string |
|
| 58 | 58 | { |
| 59 | 59 | return Str::studly($this->argument('name')); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - private function getClassNameWithoutNamespace(): array|string |
|
| 62 | + private function getClassNameWithoutNamespace(): array | string |
|
| 63 | 63 | { |
| 64 | 64 | return class_basename($this->getRepositoryName()); |
| 65 | 65 | } |
@@ -55,12 +55,12 @@ |
||
| 55 | 55 | ]; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - protected function getExceptionName(): array|string |
|
| 58 | + protected function getExceptionName(): array | string |
|
| 59 | 59 | { |
| 60 | 60 | return Str::studly($this->argument('name')); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - private function getClassNameWithoutNamespace(): array|string |
|
| 63 | + private function getClassNameWithoutNamespace(): array | string |
|
| 64 | 64 | { |
| 65 | 65 | return class_basename($this->getExceptionName()); |
| 66 | 66 | } |