Completed
Pull Request — master (#1802)
by Solomon
07:09
created
src/Commands/Make/GeneratorCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Commands/Make/ClassCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.