@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Execute the console command. |
27 | 27 | * |
28 | - * @return void |
|
28 | + * @return false|null |
|
29 | 29 | */ |
30 | 30 | public function handle() |
31 | 31 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * Check if the table column contains the specified keywords of the array |
161 | 161 | * @param string $haystack |
162 | - * @param array $needle |
|
162 | + * @param string[] $needle |
|
163 | 163 | * @return bool |
164 | 164 | */ |
165 | 165 | private function check_column(string $haystack, array $needle) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Encore\Admin\Console; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Symfony\Component\Console\Input\InputArgument; |
|
7 | 6 | use Symfony\Component\Console\Input\InputOption; |
8 | 7 | |
9 | 8 | class FormCommand extends Command |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | // use doctrine/dbal |
39 | 39 | $model = $this->laravel->make($modelName); |
40 | - $table = $model->getConnection()->getTablePrefix() . $model->getTable(); |
|
40 | + $table = $model->getConnection()->getTablePrefix().$model->getTable(); |
|
41 | 41 | $schema = $model->getConnection()->getDoctrineSchemaManager($table); |
42 | 42 | |
43 | 43 | if (!method_exists($schema, 'getDatabasePlatform')) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | return [ |
184 | 184 | ['model', null, InputOption::VALUE_REQUIRED, |
185 | - 'The eloquent model that should be use as controller data source.',], |
|
185 | + 'The eloquent model that should be use as controller data source.', ], |
|
186 | 186 | ]; |
187 | 187 | } |
188 | 188 | } |