@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function module_namespace(string $module, ?string $path = null): string |
37 | 37 | { |
38 | - $module_namespace = config('modules.namespace', $this->path_namespace(config('modules.paths.modules'))) . '\\' . ($module); |
|
39 | - $module_namespace .= strlen($path) ? '\\' . $this->path_namespace($path) : ''; |
|
38 | + $module_namespace = config('modules.namespace', $this->path_namespace(config('modules.paths.modules'))).'\\'.($module); |
|
39 | + $module_namespace .= strlen($path) ? '\\'.$this->path_namespace($path) : ''; |
|
40 | 40 | |
41 | 41 | return $this->studly_namespace($module_namespace); |
42 | 42 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | $config_path = config('modules.paths.app_folder'); |
58 | 58 | $app_path = strlen($config_path) ? trim($config_path, '/') : 'app'; |
59 | - $app_path .= strlen($path) ? '/' . $path : ''; |
|
59 | + $app_path .= strlen($path) ? '/'.$path : ''; |
|
60 | 60 | |
61 | 61 | return $this->clean_path($app_path); |
62 | 62 | } |
@@ -47,7 +47,7 @@ discard block |
||
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 | }); |
@@ -91,7 +91,7 @@ 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 | |
97 | 97 | public function module(?string $name = null): Module |