@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | $module = $this->getModuleModel($name); |
37 | 37 | |
38 | - $this->components->task("Seeding <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
38 | + $this->components->task("Seeding <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
39 | 39 | try { |
40 | 40 | $this->moduleSeed($module); |
41 | 41 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | }); |
56 | 56 | } |
57 | 57 | |
58 | - function getInfo(): string|null |
|
58 | + function getInfo(): string | null |
|
59 | 59 | { |
60 | 60 | return 'Seeding module ...'; |
61 | 61 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $config = $module->get('migration'); |
104 | 104 | |
105 | 105 | if (is_array($config) && array_key_exists('seeds', $config)) { |
106 | - foreach ((array)$config['seeds'] as $class) { |
|
106 | + foreach ((array) $config['seeds'] as $class) { |
|
107 | 107 | if (class_exists($class)) { |
108 | 108 | $seeders[] = $class; |
109 | 109 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | protected function dbSeed($className) |
141 | 141 | { |
142 | 142 | if ($option = $this->option('class')) { |
143 | - $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\') . $option; |
|
143 | + $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\').$option; |
|
144 | 144 | } else { |
145 | 145 | $params = ['--class' => $className]; |
146 | 146 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $config = GenerateConfigReader::read('seeder'); |
172 | 172 | $seederPath = str_replace('/', '\\', $config->getPath()); |
173 | 173 | |
174 | - return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
174 | + return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $foundModules = []; |
192 | 192 | foreach ($this->laravel['modules']->config('scan.paths') as $path) { |
193 | 193 | $namespace = array_slice(explode('/', $path), -1)[0]; |
194 | - $foundModules[] = $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
194 | + $foundModules[] = $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | return $foundModules; |