@@ -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) |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * Transform array like syntax to dot syntax. |
234 | 234 | * |
235 | 235 | * @param string $key |
236 | - * @return mixed |
|
236 | + * @return string |
|
237 | 237 | */ |
238 | 238 | protected function transformKey($key) |
239 | 239 | { |
@@ -671,7 +671,7 @@ discard block |
||
671 | 671 | /** |
672 | 672 | * Get this field's attributes, probably just one. |
673 | 673 | * |
674 | - * @return array |
|
674 | + * @return string[] |
|
675 | 675 | */ |
676 | 676 | public function getAllAttributes() |
677 | 677 | { |
@@ -852,7 +852,7 @@ discard block |
||
852 | 852 | /** |
853 | 853 | * Method used to set FiltersOverride status to provided value. |
854 | 854 | * |
855 | - * @param $status |
|
855 | + * @param boolean $status |
|
856 | 856 | * |
857 | 857 | * @return \Kris\LaravelFormBuilder\Fields\FormField |
858 | 858 | */ |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @throws \Exception |
49 | 49 | * |
50 | - * @return mixed |
|
50 | + * @return FilterInterface |
|
51 | 51 | */ |
52 | 52 | private static function validateFilterInstance($filter) |
53 | 53 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param $filterName |
|
63 | + * @param string $filterName |
|
64 | 64 | * |
65 | 65 | * @return FilterInterface|null |
66 | 66 | */ |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * Returns the doubleQuote property. |
131 | 131 | * |
132 | - * @return boolean |
|
132 | + * @return string |
|
133 | 133 | */ |
134 | 134 | public function getDoubleQuote() |
135 | 135 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param string $value |
154 | 154 | * @param array $options |
155 | 155 | * |
156 | - * @return mixed |
|
156 | + * @return string |
|
157 | 157 | * |
158 | 158 | * @throws \Exception |
159 | 159 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @param mixed $value |
29 | 29 | * @param array $options |
30 | 30 | * |
31 | - * @return mixed |
|
31 | + * @return string |
|
32 | 32 | */ |
33 | 33 | public function filter($value, $options = []) |
34 | 34 | { |