Completed
Pull Request — master (#1123)
by Song
02:21
created
src/Form/Builder.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Returns builder is $mode.
134 134
      *
135
-     * @param $mode
135
+     * @param string $mode
136 136
      *
137 137
      * @return bool
138 138
      */
@@ -154,6 +154,7 @@  discard block
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
+     * @param integer $slice
157 158
      * @return string
158 159
      */
159 160
     public function getResource($slice = null)
Please login to merge, or discard this patch.
src/Form/Field.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Field constructor.
178 178
      *
179
-     * @param $column
179
+     * @param string $column
180 180
      * @param array $arguments
181 181
      */
182 182
     public function __construct($column, $arguments = [])
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     /**
376 376
      * Get or set rules.
377 377
      *
378
-     * @param null $rules
378
+     * @param string $rules
379 379
      *
380 380
      * @return mixed
381 381
      */
@@ -590,8 +590,8 @@  discard block
 block discarded – undo
590 590
     /**
591 591
      * Add html attributes to elements.
592 592
      *
593
-     * @param array|string $attribute
594
-     * @param mixed        $value
593
+     * @param string $attribute
594
+     * @param boolean|string        $value
595 595
      *
596 596
      * @return $this
597 597
      */
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
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      *
22 22
      * @param array|callable|string $options
23 23
      *
24
-     * @return $this|mixed
24
+     * @return Checkbox
25 25
      */
26 26
     public function options($options = [])
27 27
     {
Please login to merge, or discard this patch.
src/Form/Field/ImageField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @param string $target
30 30
      *
31
-     * @return mixed
31
+     * @return string
32 32
      */
33 33
     public function callInterventionMethods($target)
34 34
     {
Please login to merge, or discard this patch.
src/Form/Field/MultipleFile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      *
129 129
      * @param UploadedFile $file
130 130
      *
131
-     * @return mixed|string
131
+     * @return string
132 132
      */
133 133
     protected function prepareForeach(UploadedFile $file = null)
134 134
     {
Please login to merge, or discard this patch.
src/Form/Field/MultipleImage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @param UploadedFile $image
27 27
      *
28
-     * @return mixed|string
28
+     * @return string
29 29
      */
30 30
     protected function prepareForeach(UploadedFile $image = null)
31 31
     {
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/UploadField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
      *
234 234
      * @param UploadedFile $file
235 235
      *
236
-     * @return mixed
236
+     * @return string
237 237
      */
238 238
     protected function upload(UploadedFile $file)
239 239
     {
Please login to merge, or discard this patch.
src/Form/NestedForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@
 block discarded – undo
292 292
     /**
293 293
      * Get the html and script of template.
294 294
      *
295
-     * @return array
295
+     * @return string[]
296 296
      */
297 297
     public function getTemplateHtmlAndScript()
298 298
     {
Please login to merge, or discard this patch.