@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | |
54 | 54 | $string = ''; |
55 | 55 | foreach ($pieces as $i => $piece) { |
56 | - if ($i+1 < count($pieces)) { |
|
57 | - $string .= strtolower($piece) . '_'; |
|
56 | + if ($i + 1 < count($pieces)) { |
|
57 | + $string .= strtolower($piece).'_'; |
|
58 | 58 | } else { |
59 | 59 | $string .= Str::plural(strtolower($piece)); |
60 | 60 | } |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | { |
98 | 98 | if ($this->option('migration') === true) { |
99 | 99 | if ($this->option('prefix') === true) { |
100 | - $migrationName = 'create_' . strtolower($this->argument('module')) . '_' . $this->createMigrationName() . '_table'; |
|
100 | + $migrationName = 'create_'.strtolower($this->argument('module')).'_'.$this->createMigrationName().'_table'; |
|
101 | 101 | } else { |
102 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
102 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
103 | 103 | } |
104 | 104 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
105 | 105 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | 'CLASS' => $this->getClass(), |
126 | 126 | 'LOWER_NAME' => $module->getLowerName(), |
127 | 127 | 'MODULE' => $this->getModuleName(), |
128 | - 'TABLE' => strtolower($this->argument('module')) . '_' . $this->createMigrationName(), |
|
128 | + 'TABLE' => strtolower($this->argument('module')).'_'.$this->createMigrationName(), |
|
129 | 129 | 'STUDLY_NAME' => $module->getStudlyName(), |
130 | 130 | 'MODULE_NAMESPACE' => $this->laravel['modules']->config('namespace'), |
131 | 131 | ]))->render(); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | $modelPath = GenerateConfigReader::read('model'); |
142 | 142 | |
143 | - return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php'; |
|
143 | + return $path.$modelPath->getPath().'/'.$this->getModelName().'.php'; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |