@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $contents = $this->getTemplateContents(); |
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | - $this->components->task("Generating file {$path}", function () use ($path, $contents) { |
|
| 46 | + $this->components->task("Generating file {$path}", function() use ($path, $contents) { |
|
| 47 | 47 | $overwriteFile = $this->hasOption('force') ? $this->option('force') : false; |
| 48 | 48 | (new FileGenerator($path, $contents))->withFileOverwrite($overwriteFile)->generate(); |
| 49 | 49 | }); |
@@ -91,11 +91,11 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | $namespace = $this->laravel['modules']->config('namespace'); |
| 93 | 93 | |
| 94 | - $namespace .= '\\' . $module->getStudlyName(); |
|
| 94 | + $namespace .= '\\'.$module->getStudlyName(); |
|
| 95 | 95 | |
| 96 | - $namespace .= '\\' . $this->getDefaultNamespace(); |
|
| 96 | + $namespace .= '\\'.$this->getDefaultNamespace(); |
|
| 97 | 97 | |
| 98 | - $namespace .= '\\' . $extra; |
|
| 98 | + $namespace .= '\\'.$extra; |
|
| 99 | 99 | |
| 100 | 100 | $namespace = str_replace('/', '\\', $namespace); |
| 101 | 101 | |
@@ -120,8 +120,8 @@ discard block |
||
| 120 | 120 | public function getModuleNamespace(string $path = '', string $module = null): string |
| 121 | 121 | { |
| 122 | 122 | return $this->getStudlyNamespace( |
| 123 | - $this->laravel['modules']->config('namespace') . '\\' |
|
| 124 | - . ($module ?? $this->laravel['modules']->findOrFail($this->getModuleName())) . '\\' |
|
| 123 | + $this->laravel['modules']->config('namespace').'\\' |
|
| 124 | + . ($module ?? $this->laravel['modules']->findOrFail($this->getModuleName())).'\\' |
|
| 125 | 125 | . $this->getPathNamespace($path) |
| 126 | 126 | ); |
| 127 | 127 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
| 51 | 51 | $config = GenerateConfigReader::read('class'); |
| 52 | - $path .= $this->typePath($config->getPath()) . '/' . $this->getFileName() . '.php'; |
|
| 52 | + $path .= $this->typePath($config->getPath()).'/'.$this->getFileName().'.php'; |
|
| 53 | 53 | |
| 54 | 54 | return $path; |
| 55 | 55 | } |