Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Form/Field/MultipleSelect.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Illuminate\Database\Eloquent\Relations\BelongsToMany;
5
+use Illuminate\Database\Eloquent\Relations\BelongsToMany;
6 6
 use Illuminate\Support\Arr;
7 7
 
8 8
 class MultipleSelect extends Select
Please login to merge, or discard this patch.
src/Form/Field/PlainInput.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
8 8
 
9 9
     protected $append;
10 10
 
11
+    /**
12
+     * @param string $string
13
+     */
11 14
     public function prepend($string)
12 15
     {
13 16
         if (is_null($this->prepend)) {
@@ -17,6 +20,9 @@  discard block
 block discarded – undo
17 20
         return $this;
18 21
     }
19 22
 
23
+    /**
24
+     * @param string $string
25
+     */
20 26
     public function append($string)
21 27
     {
22 28
         if (is_null($this->append)) {
@@ -33,6 +39,9 @@  discard block
 block discarded – undo
33 39
         }
34 40
     }
35 41
 
42
+    /**
43
+     * @param string $attribute
44
+     */
36 45
     protected function defaultAttribute($attribute, $value)
37 46
     {
38 47
         if (!array_key_exists($attribute, $this->attributes)) {
Please login to merge, or discard this patch.
src/Form/Field/Radio.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Form\Field;
5
+use Encore\Admin\Form\Field;
6 6
 use Illuminate\Contracts\Support\Arrayable;
7 7
 
8 8
 class Radio extends Field
Please login to merge, or discard this patch.
src/Form/Field/Select.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @param array|callable|string $options
42 42
      *
43
-     * @return $this|mixed
43
+     * @return Select
44 44
      */
45 45
     public function options($options = [])
46 46
     {
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Facades\Admin;
6
-use Encore\Admin\Form\Field;
7
-use Illuminate\Contracts\Support\Arrayable;
8
-use Illuminate\Database\Eloquent\Model;
9
-use Illuminate\Support\Arr;
5
+use Encore\Admin\Facades\Admin;
6
+use Encore\Admin\Form\Field;
7
+use Illuminate\Contracts\Support\Arrayable;
8
+use Illuminate\Database\Eloquent\Model;
9
+use Illuminate\Support\Arr;
10 10
 use Illuminate\Support\Str;
11 11
 
12 12
 class Select extends Field
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
             throw new \InvalidArgumentException("[$model] must be a valid model class");
219 219
         }
220 220
 
221
-        $this->options = function ($value) use ($model, $idField, $textField) {
221
+        $this->options = function($value) use ($model, $idField, $textField) {
222 222
             if (empty($value)) {
223 223
                 return [];
224 224
             }
Please login to merge, or discard this patch.
src/Form/Field/SwitchField.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form\Field;
4 4
 
5
-use Encore\Admin\Form\Field;
5
+use Encore\Admin\Form\Field;
6 6
 use Illuminate\Support\Arr;
7 7
 
8 8
 class SwitchField extends Field
Please login to merge, or discard this patch.
src/Form/Field/Tags.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\Field;
6
-use Illuminate\Contracts\Support\Arrayable;
7
-use Illuminate\Support\Arr;
5
+use Encore\Admin\Form\Field;
6
+use Illuminate\Contracts\Support\Arrayable;
7
+use Illuminate\Support\Arr;
8 8
 use Illuminate\Support\Collection;
9 9
 
10 10
 class Tags extends Field
Please login to merge, or discard this patch.
src/Form/Field/UploadField.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;
6
-use Illuminate\Support\Facades\Storage;
7
-use Illuminate\Support\Facades\URL;
5
+use Encore\Admin\Form;
6
+use Illuminate\Support\Facades\Storage;
7
+use Illuminate\Support\Facades\URL;
8 8
 use Symfony\Component\HttpFoundation\File\UploadedFile;
9 9
 
10 10
 trait UploadField
Please login to merge, or discard this patch.
src/Form/Footer.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Form;
4 4
 
5
-use Encore\Admin\Admin;
5
+use Encore\Admin\Admin;
6 6
 use Illuminate\Contracts\Support\Renderable;
7 7
 
8 8
 class Footer implements Renderable
Please login to merge, or discard this patch.
src/Form/Layout/Layout.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     /**
90 90
      * Remove reserved fields from form layout.
91 91
      *
92
-     * @param array $fields
92
+     * @param string[] $fields
93 93
      */
94 94
     public function removeReservedFields(array $fields)
95 95
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 namespace Encore\Admin\Form\Layout;
7 7
 
8
-use Encore\Admin\Form;
8
+use Encore\Admin\Form;
9 9
 use Illuminate\Support\Collection;
10 10
 
11 11
 class Layout
Please login to merge, or discard this patch.