@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * Transform array like syntax to dot syntax. |
219 | 219 | * |
220 | 220 | * @param string $key |
221 | - * @return mixed |
|
221 | + * @return string |
|
222 | 222 | */ |
223 | 223 | protected function transformKey($key) |
224 | 224 | { |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | /** |
658 | 658 | * Get this field's attributes, probably just one. |
659 | 659 | * |
660 | - * @return array |
|
660 | + * @return string[] |
|
661 | 661 | */ |
662 | 662 | public function getAllAttributes() |
663 | 663 | { |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Kris\LaravelFormBuilder\Fields; |
4 | 4 | |
5 | 5 | use Kris\LaravelFormBuilder\Form; |
6 | -use Illuminate\Database\Eloquent\Model; |
|
7 | 6 | use Kris\LaravelFormBuilder\FormHelper; |
8 | -use Illuminate\Database\Eloquent\Collection; |
|
9 | 7 | |
10 | 8 | /** |
11 | 9 | * Class FormField |
@@ -62,7 +62,7 @@ |
||
62 | 62 | /** |
63 | 63 | * Get all children of the choice field. |
64 | 64 | * |
65 | - * @return mixed |
|
65 | + * @return FormField[] |
|
66 | 66 | */ |
67 | 67 | public function getChildren() |
68 | 68 | { |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | * Set single form option on form. |
458 | 458 | * |
459 | 459 | * @param string $option |
460 | - * @param mixed $value |
|
460 | + * @param boolean $value |
|
461 | 461 | * |
462 | 462 | * @return $this |
463 | 463 | */ |
@@ -893,7 +893,7 @@ discard block |
||
893 | 893 | /** |
894 | 894 | * Get template from options if provided, otherwise fallback to config. |
895 | 895 | * |
896 | - * @return mixed |
|
896 | + * @return string |
|
897 | 897 | */ |
898 | 898 | protected function getTemplate() |
899 | 899 | { |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Format the label to the proper format. |
242 | 242 | * |
243 | - * @param $name |
|
243 | + * @param string $name |
|
244 | 244 | * @return string |
245 | 245 | */ |
246 | 246 | public function formatLabel($name) |
@@ -326,6 +326,7 @@ discard block |
||
326 | 326 | /** |
327 | 327 | * Alter a form's validity recursively, and add messages with nested form prefix. |
328 | 328 | * |
329 | + * @param boolean $isValid |
|
329 | 330 | * @return void |
330 | 331 | */ |
331 | 332 | public function alterValid(Form $form, Form $mainForm, &$isValid) |
@@ -350,6 +351,7 @@ discard block |
||
350 | 351 | /** |
351 | 352 | * Add unprefixed messages with prefix to a MessageBag. |
352 | 353 | * |
354 | + * @param string|null $prefix |
|
353 | 355 | * @return void |
354 | 356 | */ |
355 | 357 | public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages) |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * Set up a single child element for a collection. |
135 | 135 | * |
136 | 136 | * @param FormField $field |
137 | - * @param $name |
|
137 | + * @param string $name |
|
138 | 138 | * @param null $value |
139 | 139 | * @return FormField |
140 | 140 | */ |
@@ -46,8 +46,7 @@ discard block |
||
46 | 46 | * Create a Form instance. |
47 | 47 | * |
48 | 48 | * @param string $formClass The name of the class that inherits \Kris\LaravelFormBuilder\Form. |
49 | - * @param array $options|null |
|
50 | - * @param array $data|null |
|
49 | + * @param array $options |
|
51 | 50 | * @return Form |
52 | 51 | */ |
53 | 52 | public function create($formClass, array $options = [], array $data = []) |
@@ -73,7 +72,7 @@ discard block |
||
73 | 72 | * @param $items |
74 | 73 | * @param array $options |
75 | 74 | * @param array $data |
76 | - * @return mixed |
|
75 | + * @return Form |
|
77 | 76 | */ |
78 | 77 | public function createByArray($items, array $options = [], array $data = []) |
79 | 78 | { |
@@ -91,7 +90,7 @@ discard block |
||
91 | 90 | } |
92 | 91 | |
93 | 92 | /** |
94 | - * @param $form |
|
93 | + * @param Form $form |
|
95 | 94 | * @param $items |
96 | 95 | */ |
97 | 96 | public function buildFormByArray($form, $items) |