@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | 'stubs' => [ |
26 | 26 | 'enabled' => false, |
27 | - 'path' => base_path() . '/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
27 | + 'path' => base_path().'/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
28 | 28 | 'files' => [ |
29 | 29 | 'routes/web' => 'Routes/web.php', |
30 | 30 | 'routes/api' => 'Routes/api.php', |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $generatorPath = GenerateConfigReader::read('provider'); |
80 | 80 | |
81 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function getWebRoutesPath() |
88 | 88 | { |
89 | - return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/web.php'); |
|
89 | + return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/web.php'); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function getApiRoutesPath() |
96 | 96 | { |
97 | - return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/api.php'); |
|
97 | + return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/api.php'); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | public function getDefaultNamespace() : string |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $name = $module->getName(); |
98 | 98 | $config = $module->get('migration'); |
99 | 99 | if (is_array($config) && array_key_exists('seeds', $config)) { |
100 | - foreach ((array)$config['seeds'] as $class) { |
|
100 | + foreach ((array) $config['seeds'] as $class) { |
|
101 | 101 | if (class_exists($class)) { |
102 | 102 | $seeders[] = $class; |
103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } else { |
110 | 110 | //look at other namespaces |
111 | 111 | $classes = $this->getSeederNames($name); |
112 | - foreach($classes as $class) { |
|
112 | + foreach ($classes as $class) { |
|
113 | 113 | if (class_exists($class)) { |
114 | 114 | $seeders[] = $class; |
115 | 115 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | protected function dbSeed($className) |
132 | 132 | { |
133 | 133 | if ($option = $this->option('class')) { |
134 | - $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\') . $option; |
|
134 | + $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\').$option; |
|
135 | 135 | } else { |
136 | 136 | $params = ['--class' => $className]; |
137 | 137 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $seederPath = GenerateConfigReader::read('seeder'); |
163 | 163 | $seederPath = str_replace('/', '\\', $seederPath->getPath()); |
164 | 164 | |
165 | - return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
165 | + return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
@@ -180,9 +180,9 @@ discard block |
||
180 | 180 | $seederPath = str_replace('/', '\\', $seederPath->getPath()); |
181 | 181 | |
182 | 182 | $foundModules = []; |
183 | - foreach($this->laravel['modules']->config('scan.paths') as $path) { |
|
183 | + foreach ($this->laravel['modules']->config('scan.paths') as $path) { |
|
184 | 184 | $namespace = array_slice(explode('/', $path), -1)[0]; |
185 | - $foundModules[] = $namespace. '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
185 | + $foundModules[] = $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | return $foundModules; |