@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | $string = ''; |
| 54 | 54 | foreach ($pieces as $i => $piece) { |
| 55 | - if ($i+1 < count($pieces)) { |
|
| 56 | - $string .= strtolower($piece) . '_'; |
|
| 55 | + if ($i + 1 < count($pieces)) { |
|
| 56 | + $string .= strtolower($piece).'_'; |
|
| 57 | 57 | } else { |
| 58 | 58 | $string .= Str::plural(strtolower($piece)); |
| 59 | 59 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | private function handleOptionalMigrationOption() |
| 95 | 95 | { |
| 96 | 96 | if ($this->option('migration') === true) { |
| 97 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
| 97 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
| 98 | 98 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | $seederPath = $this->laravel['modules']->config('paths.generator.model'); |
| 129 | 129 | |
| 130 | - return $path . $seederPath . '/' . $this->getModelName() . '.php'; |
|
| 130 | + return $path.$seederPath.'/'.$this->getModelName().'.php'; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |