Completed
Pull Request — master (#1827)
by Solomon
07:53
created
src/Commands/Make/GeneratorCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Traits/PathNamespace.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.