@@ -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 | { |
@@ -40,8 +40,7 @@ |
||
40 | 40 | * Create a Form instance. |
41 | 41 | * |
42 | 42 | * @param string $formClass The name of the class that inherits \Kris\LaravelFormBuilder\Form. |
43 | - * @param array $options|null |
|
44 | - * @param array $data|null |
|
43 | + * @param array $options |
|
45 | 44 | * @return Form |
46 | 45 | */ |
47 | 46 | public function create($formClass, array $options = [], array $data = []) |
@@ -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) |