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