Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Form/Field.php 2 patches
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
     {
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
     }
570 570
 
571 571
     /**
572
-     * @param string|array|Closure $input
572
+     * @param callable|null $input
573 573
      * @param string|array         $original
574 574
      *
575 575
      * @return array|Closure
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
     /**
781 781
      * Set or get value of the field.
782 782
      *
783
-     * @param null $value
783
+     * @param string $value
784 784
      *
785 785
      * @return mixed
786 786
      */
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
     /**
952 952
      * Add html attributes to elements.
953 953
      *
954
-     * @param array|string $attribute
954
+     * @param string $attribute
955 955
      * @param mixed        $value
956 956
      *
957 957
      * @return $this
@@ -1315,7 +1315,7 @@  discard block
 block discarded – undo
1315 1315
     }
1316 1316
 
1317 1317
     /**
1318
-     * @param array $labelClass
1318
+     * @param string[] $labelClass
1319 1319
      *
1320 1320
      * @return self
1321 1321
      */
@@ -1370,7 +1370,7 @@  discard block
 block discarded – undo
1370 1370
      *
1371 1371
      * @param string $view
1372 1372
      *
1373
-     * @return string
1373
+     * @return Field
1374 1374
      */
1375 1375
     public function setView($view)
1376 1376
     {
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form;
4 4
 
5
-use Closure;
6
-use Encore\Admin\Admin;
7
-use Encore\Admin\Form;
8
-use Illuminate\Contracts\Support\Arrayable;
9
-use Illuminate\Contracts\Support\Renderable;
10
-use Illuminate\Support\Arr;
11
-use Illuminate\Support\Str;
5
+use Closure;
6
+use Encore\Admin\Admin;
7
+use Encore\Admin\Form;
8
+use Illuminate\Contracts\Support\Arrayable;
9
+use Illuminate\Contracts\Support\Renderable;
10
+use Illuminate\Support\Arr;
11
+use Illuminate\Support\Str;
12 12
 use Illuminate\Support\Traits\Macroable;
13 13
 
14 14
 /**
Please login to merge, or discard this patch.
src/Form/Field/Checkbox.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @param array|callable|string $options
25 25
      *
26
-     * @return $this|mixed
26
+     * @return Checkbox
27 27
      */
28 28
     public function options($options = [])
29 29
     {
Please login to merge, or discard this patch.
src/Form/Field/Date.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
     protected $format = 'YYYY-MM-DD';
17 17
 
18
+    /**
19
+     * @param string $format
20
+     */
18 21
     public function format($format)
19 22
     {
20 23
         $this->format = $format;
Please login to merge, or discard this patch.
src/Form/Field/Embeds.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Form\EmbeddedForm;
6
-use Encore\Admin\Form\Field;
7
-use Illuminate\Support\Arr;
5
+use Encore\Admin\Form\EmbeddedForm;
6
+use Encore\Admin\Form\Field;
7
+use Illuminate\Support\Arr;
8 8
 use Illuminate\Support\Str;
9 9
 
10 10
 class Embeds extends Field
Please login to merge, or discard this patch.
src/Form/Field/File.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Form\Field;
6
-use Illuminate\Support\Arr;
5
+use Encore\Admin\Form\Field;
6
+use Illuminate\Support\Arr;
7 7
 use Symfony\Component\HttpFoundation\File\UploadedFile;
8 8
 
9 9
 class File extends Field
Please login to merge, or discard this patch.
src/Form/Field/HasMany.php 2 patches
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Admin;
6
-use Encore\Admin\Form;
7
-use Encore\Admin\Form\Field;
8
-use Encore\Admin\Form\NestedForm;
9
-use Illuminate\Database\Eloquent\Relations\HasMany as Relation;
10
-use Illuminate\Database\Eloquent\Relations\MorphMany;
11
-use Illuminate\Support\Arr;
5
+use Encore\Admin\Admin;
6
+use Encore\Admin\Form;
7
+use Encore\Admin\Form\Field;
8
+use Encore\Admin\Form\NestedForm;
9
+use Illuminate\Database\Eloquent\Relations\HasMany as Relation;
10
+use Illuminate\Database\Eloquent\Relations\MorphMany;
11
+use Illuminate\Support\Arr;
12 12
 use Illuminate\Support\Str;
13 13
 
14 14
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -687,7 +687,7 @@
 block discarded – undo
687 687
         }
688 688
 
689 689
         /* Build row elements */
690
-        $template = array_reduce($fields, function ($all, $field) {
690
+        $template = array_reduce($fields, function($all, $field) {
691 691
             $all .= "<td>{$field}</td>";
692 692
 
693 693
             return $all;
Please login to merge, or discard this patch.
src/Form/Field/ImageField.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      *
39 39
      * @param string $target
40 40
      *
41
-     * @return mixed
41
+     * @return string
42 42
      */
43 43
     public function callInterventionMethods($target)
44 44
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Intervention\Image\Constraint;
6
-use Intervention\Image\Facades\Image as InterventionImage;
7
-use Intervention\Image\ImageManagerStatic;
5
+use Intervention\Image\Constraint;
6
+use Intervention\Image\Facades\Image as InterventionImage;
7
+use Intervention\Image\ImageManagerStatic;
8 8
 use Symfony\Component\HttpFoundation\File\UploadedFile;
9 9
 
10 10
 trait ImageField
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
 
170 170
             $action = $size[2] ?? 'resize';
171 171
             // Resize image with aspect ratio
172
-            $image->$action($size[0], $size[1], function (Constraint $constraint) {
172
+            $image->$action($size[0], $size[1], function(Constraint $constraint) {
173 173
                 $constraint->aspectRatio();
174 174
             })->resizeCanvas($size[0], $size[1], 'center', false, '#ffffff');
175 175
 
Please login to merge, or discard this patch.
src/Form/Field/KeyValue.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Admin;
6
-use Encore\Admin\Form\Field;
5
+use Encore\Admin\Admin;
6
+use Encore\Admin\Form\Field;
7 7
 use Illuminate\Support\Arr;
8 8
 
9 9
 class KeyValue extends Field
Please login to merge, or discard this patch.
src/Form/Field/ListField.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Admin;
6
-use Encore\Admin\Form\Field;
5
+use Encore\Admin\Admin;
6
+use Encore\Admin\Form\Field;
7 7
 use Illuminate\Support\Arr;
8 8
 
9 9
 class ListField extends Field
Please login to merge, or discard this patch.