@@ -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 | } |
@@ -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 | }); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | $path_namespace = $this->path_namespace(str_replace($this->getClass(), '', $this->argument($this->argumentName))); |
92 | 92 | |
93 | - return $this->module_namespace($module->getStudlyName(), $this->getDefaultNamespace() . ($path_namespace ? '\\' . $path_namespace : '')); |
|
93 | + return $this->module_namespace($module->getStudlyName(), $this->getDefaultNamespace().($path_namespace ? '\\'.$path_namespace : '')); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -98,6 +98,6 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function path(?string $path = null): string |
100 | 100 | { |
101 | - return $this->clean_path($this->laravel['modules']->getModulePath($this->getModuleName()) . (strlen($path) ? '/' . $path : '')); |
|
101 | + return $this->clean_path($this->laravel['modules']->getModulePath($this->getModuleName()).(strlen($path) ? '/'.$path : '')); |
|
102 | 102 | } |
103 | 103 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | $app_path = GenerateConfigReader::read('class')->getPath() ?? $this->app_path('Classes'); |
45 | 45 | |
46 | - return $this->path($this->type_path($app_path) . '/' . $this->getFileName() . '.php'); |
|
46 | + return $this->path($this->type_path($app_path).'/'.$this->getFileName().'.php'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | protected function getFileName(): string |