Completed
Push — master ( 452200...7c6bda )
by
unknown
16:11 queued 06:17
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $contents = $this->getTemplateContents();
48 48
 
49 49
         try {
50
-            $this->components->task("Generating file {$path}", function () use ($path, $contents) {
50
+            $this->components->task("Generating file {$path}", function() use ($path, $contents) {
51 51
                 $overwriteFile = $this->hasOption('force') ? $this->option('force') : false;
52 52
                 (new FileGenerator($path, $contents))->withFileOverwrite($overwriteFile)->generate();
53 53
             });
@@ -91,7 +91,7 @@  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
 
97 97
     public function module(?string $name = null): Module
Please login to merge, or discard this patch.