@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $this->info('All modules seeded.'); |
| 48 | 48 | } |
| 49 | 49 | } catch (\Error $e) { |
| 50 | - $e = new \ErrorException($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e); |
|
| 50 | + $e = new \ErrorException($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e); |
|
| 51 | 51 | $this->reportException($e); |
| 52 | 52 | |
| 53 | 53 | $this->renderException($this->getOutput(), $e); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $name = $module->getName(); |
| 105 | 105 | $config = $module->get('migration'); |
| 106 | 106 | if (is_array($config) && array_key_exists('seeds', $config)) { |
| 107 | - foreach ((array)$config['seeds'] as $class) { |
|
| 107 | + foreach ((array) $config['seeds'] as $class) { |
|
| 108 | 108 | if (class_exists($class)) { |
| 109 | 109 | $seeders[] = $class; |
| 110 | 110 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | protected function dbSeed($className) |
| 139 | 139 | { |
| 140 | 140 | if ($option = $this->option('class')) { |
| 141 | - $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\') . $option; |
|
| 141 | + $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\').$option; |
|
| 142 | 142 | } else { |
| 143 | 143 | $params = ['--class' => $className]; |
| 144 | 144 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $seederPath = GenerateConfigReader::read('seeder'); |
| 170 | 170 | $seederPath = str_replace('/', '\\', $seederPath->getPath()); |
| 171 | 171 | |
| 172 | - return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
| 172 | + return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /** |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $foundModules = []; |
| 190 | 190 | foreach ($this->laravel['modules']->config('scan.paths') as $path) { |
| 191 | 191 | $namespace = array_slice(explode('/', $path), -1)[0]; |
| 192 | - $foundModules[] = $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder'; |
|
| 192 | + $foundModules[] = $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder'; |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | return $foundModules; |