Completed
Pull Request — master (#2262)
by
unknown
17:07
created
src/Console/FormCommand.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.