Completed
Pull Request — master (#1758)
by
unknown
09:41
created
src/Commands/ControllerMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $controllerPath = GenerateConfigReader::read('controller');
47 47
 
48
-        return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php';
48
+        return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php';
49 49
     }
50 50
 
51 51
     /**
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function getDefaultNamespace(): string
119 119
     {
120
-        return config('modules.paths.generator.controller.namespace' )
121
-            ?? ltrim(config('modules.paths.generator.controller.path','Http/Controllers'),config('modules.paths.app_folder'));
120
+        return config('modules.paths.generator.controller.namespace')
121
+            ?? ltrim(config('modules.paths.generator.controller.path', 'Http/Controllers'), config('modules.paths.app_folder'));
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
src/Commands/RouteProviderMakeCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $generatorPath = GenerateConfigReader::read('provider');
89 89
 
90
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
90
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
91 91
     }
92 92
 
93 93
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     protected function getWebRoutesPath()
97 97
     {
98
-        return '/' . $this->laravel['modules']->config('stubs.files.routes/web', 'Routes/web.php');
98
+        return '/'.$this->laravel['modules']->config('stubs.files.routes/web', 'Routes/web.php');
99 99
     }
100 100
 
101 101
     /**
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function getApiRoutesPath()
105 105
     {
106
-        return '/' . $this->laravel['modules']->config('stubs.files.routes/api', 'Routes/api.php');
106
+        return '/'.$this->laravel['modules']->config('stubs.files.routes/api', 'Routes/api.php');
107 107
     }
108 108
 
109 109
     public function getDefaultNamespace(): string
110 110
     {
111
-        return config('modules.paths.generator.provider.namespace' )
112
-            ?? ltrim(config('modules.paths.generator.provider.path','Providers'),config('modules.paths.app_folder',''));
111
+        return config('modules.paths.generator.provider.namespace')
112
+            ?? ltrim(config('modules.paths.generator.provider.path', 'Providers'), config('modules.paths.app_folder', ''));
113 113
     }
114 114
 
115 115
     /**
Please login to merge, or discard this patch.
src/Commands/ProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         /** @var Module $module */
77 77
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
78 78
 
79
-        return (new Stub('/' . $stub . '.stub', [
79
+        return (new Stub('/'.$stub.'.stub', [
80 80
             'NAMESPACE'        => $this->getClassNamespace($module),
81 81
             'CLASS'            => $this->getClass(),
82 82
             'LOWER_NAME'       => $module->getLowerName(),
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $generatorPath = GenerateConfigReader::read('provider');
103 103
 
104
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
104
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.