Completed
Pull Request — master (#4271)
by
unknown
02:38
created
src/Form/Layout/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function removeFields($fields)
50 50
     {
51
-        $this->fields = $this->fields->reject(function (Field $field) use ($fields) {
51
+        $this->fields = $this->fields->reject(function(Field $field) use ($fields) {
52 52
             return in_array($field->column(), $fields);
53 53
         });
54 54
     }
Please login to merge, or discard this patch.
src/Console/CreateUserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if (empty($selectedOption)) {
43 43
             $selected = $this->choice('Please choose a role for the user', $selectedOption, null, null, true);
44 44
 
45
-            $roles = $roles->filter(function ($role) use ($selected) {
45
+            $roles = $roles->filter(function($role) use ($selected) {
46 46
                 return in_array($role->name, $selected);
47 47
             });
48 48
         }
Please login to merge, or discard this patch.
src/Actions/GridAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @return mixed
48
+     * @return string
49 49
      */
50 50
     protected function getModelClass()
51 51
     {
Please login to merge, or discard this patch.
src/Form/Field.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      *
282 282
      * @param string $column
283 283
      *
284
-     * @return mixed|string
284
+     * @return string
285 285
      */
286 286
     protected function formatColumn($column = '')
287 287
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
     }
575 575
 
576 576
     /**
577
-     * @param string|array|Closure $input
577
+     * @param callable|null $input
578 578
      * @param string|array         $original
579 579
      *
580 580
      * @return array|Closure
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
     /**
786 786
      * Set or get value of the field.
787 787
      *
788
-     * @param null $value
788
+     * @param string $value
789 789
      *
790 790
      * @return mixed
791 791
      */
@@ -956,7 +956,7 @@  discard block
 block discarded – undo
956 956
     /**
957 957
      * Add html attributes to elements.
958 958
      *
959
-     * @param array|string $attribute
959
+     * @param string $attribute
960 960
      * @param mixed        $value
961 961
      *
962 962
      * @return $this
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
     }
1335 1335
 
1336 1336
     /**
1337
-     * @param array $labelClass
1337
+     * @param string[] $labelClass
1338 1338
      *
1339 1339
      * @return self
1340 1340
      */
@@ -1389,7 +1389,7 @@  discard block
 block discarded – undo
1389 1389
      *
1390 1390
      * @param string $view
1391 1391
      *
1392
-     * @return string
1392
+     * @return Field
1393 1393
      */
1394 1394
     public function setView($view): self
1395 1395
     {
Please login to merge, or discard this patch.
src/Form.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                 return $ret;
378 378
             }
379 379
 
380
-            collect(explode(',', $id))->filter()->each(function ($id) {
380
+            collect(explode(',', $id))->filter()->each(function($id) {
381 381
                 $builder = $this->model()->newQuery();
382 382
 
383 383
                 if ($this->isSoftDeletes) {
@@ -430,9 +430,9 @@  discard block
 block discarded – undo
430 430
 
431 431
         $data = $model->toArray();
432 432
 
433
-        $this->builder->fields()->filter(function ($field) {
433
+        $this->builder->fields()->filter(function($field) {
434 434
             return $field instanceof Field\File;
435
-        })->each(function (Field\File $file) use ($data) {
435
+        })->each(function(Field\File $file) use ($data) {
436 436
             $file->setOriginal($data);
437 437
 
438 438
             $file->destroy();
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
             return $response;
458 458
         }
459 459
 
460
-        DB::transaction(function () {
460
+        DB::transaction(function() {
461 461
             $inserts = $this->prepareInsert($this->updates);
462 462
 
463 463
             foreach ($inserts as $column => $value) {
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
             return $response;
626 626
         }
627 627
 
628
-        DB::transaction(function () {
628
+        DB::transaction(function() {
629 629
             $updates = $this->prepareUpdate($this->updates);
630 630
 
631 631
             foreach ($updates as $column => $value) {
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
     protected function getFieldByColumn($column)
1106 1106
     {
1107 1107
         return $this->builder->fields()->first(
1108
-            function (Field $field) use ($column) {
1108
+            function(Field $field) use ($column) {
1109 1109
                 if (is_array($field->column())) {
1110 1110
                     return in_array($column, $field->column());
1111 1111
                 }
@@ -1124,7 +1124,7 @@  discard block
 block discarded – undo
1124 1124
     {
1125 1125
         $values = $this->model->toArray();
1126 1126
 
1127
-        $this->builder->fields()->each(function (Field $field) use ($values) {
1127
+        $this->builder->fields()->each(function(Field $field) use ($values) {
1128 1128
             $field->setOriginal($values);
1129 1129
         });
1130 1130
     }
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
 
1153 1153
         $data = $this->model->toArray();
1154 1154
 
1155
-        $this->builder->fields()->each(function (Field $field) use ($data) {
1155
+        $this->builder->fields()->each(function(Field $field) use ($data) {
1156 1156
             if (!in_array($field->column(), $this->ignored, true)) {
1157 1157
                 $field->fill($data);
1158 1158
             }
@@ -1282,7 +1282,7 @@  discard block
 block discarded – undo
1282 1282
      */
1283 1283
     public function setWidth($fieldWidth = 8, $labelWidth = 2): self
1284 1284
     {
1285
-        $this->builder()->fields()->each(function ($field) use ($fieldWidth, $labelWidth) {
1285
+        $this->builder()->fields()->each(function($field) use ($fieldWidth, $labelWidth) {
1286 1286
             /* @var Field $field  */
1287 1287
             $field->setWidth($fieldWidth, $labelWidth);
1288 1288
         });
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
      *
526 526
      * @param array $data
527 527
      *
528
-     * @return mixed
528
+     * @return Response|null
529 529
      */
530 530
     protected function prepare($data = [])
531 531
     {
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
     /**
667 667
      * Get RedirectResponse after update.
668 668
      *
669
-     * @param mixed $key
669
+     * @param integer $key
670 670
      *
671 671
      * @return \Illuminate\Http\RedirectResponse
672 672
      */
@@ -1295,9 +1295,8 @@  discard block
 block discarded – undo
1295 1295
      * unset input data.
1296 1296
      *
1297 1297
      * @param string $key
1298
-     * @param null   $value
1299 1298
      *
1300
-     * @return array|mixed
1299
+     * @return boolean
1301 1300
      */
1302 1301
     public function unsetInput($key)
1303 1302
     {
Please login to merge, or discard this patch.