@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $contents = $this->getTemplateContents(); |
| 47 | 47 | |
| 48 | 48 | try { |
| 49 | - $this->components->task("Generating file {$path}", function () use ($path, $contents) { |
|
| 49 | + $this->components->task("Generating file {$path}", function() use ($path, $contents) { |
|
| 50 | 50 | $overwriteFile = $this->hasOption('force') ? $this->option('force') : false; |
| 51 | 51 | (new FileGenerator($path, $contents))->withFileOverwrite($overwriteFile)->generate(); |
| 52 | 52 | }); |
@@ -91,6 +91,6 @@ discard block |
||
| 91 | 91 | { |
| 92 | 92 | $path_namespace = $this->path_namespace(str_replace($this->getClass(), '', $this->argument($this->argumentName))); |
| 93 | 93 | |
| 94 | - return $this->module_namespace($module->getStudlyName(), $this->getDefaultNamespace() . ($path_namespace ? '\\' . $path_namespace : '')); |
|
| 94 | + return $this->module_namespace($module->getStudlyName(), $this->getDefaultNamespace().($path_namespace ? '\\'.$path_namespace : '')); |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function module_namespace(string $module, string $path = null): string |
| 40 | 40 | { |
| 41 | - $module_namespace = config('modules.namespace', $this->path_namespace(config('modules.paths.modules'))) . '\\' . ($module); |
|
| 42 | - $module_namespace .= strlen($path) ? '\\' . $this->path_namespace($path) : ''; |
|
| 41 | + $module_namespace = config('modules.namespace', $this->path_namespace(config('modules.paths.modules'))).'\\'.($module); |
|
| 42 | + $module_namespace .= strlen($path) ? '\\'.$this->path_namespace($path) : ''; |
|
| 43 | 43 | |
| 44 | 44 | return $this->studly_namespace($module_namespace); |
| 45 | 45 | } |