@@ -25,7 +25,6 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Create a new after field creation instance. |
| 27 | 27 | * |
| 28 | - * @param Form $form |
|
| 29 | 28 | * @param FormField $field |
| 30 | 29 | * @return void |
| 31 | 30 | */ |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * Transform array like syntax to dot syntax. |
| 244 | 244 | * |
| 245 | 245 | * @param string $key |
| 246 | - * @return mixed |
|
| 246 | + * @return string |
|
| 247 | 247 | */ |
| 248 | 248 | protected function transformKey($key) |
| 249 | 249 | { |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | /** |
| 665 | 665 | * Get validation rules for a field if any with label for attributes. |
| 666 | 666 | * |
| 667 | - * @return array|null |
|
| 667 | + * @return Rules |
|
| 668 | 668 | */ |
| 669 | 669 | public function getValidationRules() |
| 670 | 670 | { |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | /** |
| 707 | 707 | * Get this field's attributes, probably just one. |
| 708 | 708 | * |
| 709 | - * @return array |
|
| 709 | + * @return string[] |
|
| 710 | 710 | */ |
| 711 | 711 | public function getAllAttributes() |
| 712 | 712 | { |
@@ -887,7 +887,7 @@ discard block |
||
| 887 | 887 | /** |
| 888 | 888 | * Method used to set FiltersOverride status to provided value. |
| 889 | 889 | * |
| 890 | - * @param $status |
|
| 890 | + * @param boolean $status |
|
| 891 | 891 | * |
| 892 | 892 | * @return \Kris\LaravelFormBuilder\Fields\FormField |
| 893 | 893 | */ |
@@ -932,6 +932,8 @@ discard block |
||
| 932 | 932 | /** |
| 933 | 933 | * Get config from the form. |
| 934 | 934 | * |
| 935 | + * @param string $key |
|
| 936 | + * @param string $default |
|
| 935 | 937 | * @return mixed |
| 936 | 938 | */ |
| 937 | 939 | private function getConfig($key = null, $default = null) |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Fire an event. |
| 47 | 47 | * |
| 48 | - * @param object $event |
|
| 48 | + * @param Events\AfterCollectingFieldRules $event |
|
| 49 | 49 | * @return array|null |
| 50 | 50 | */ |
| 51 | 51 | public function fireEvent($event) |
@@ -57,8 +57,7 @@ discard block |
||
| 57 | 57 | * Create a Form instance. |
| 58 | 58 | * |
| 59 | 59 | * @param string $formClass The name of the class that inherits \Kris\LaravelFormBuilder\Form. |
| 60 | - * @param array $options|null |
|
| 61 | - * @param array $data|null |
|
| 60 | + * @param array $options |
|
| 62 | 61 | * @return Form |
| 63 | 62 | */ |
| 64 | 63 | public function create($formClass, array $options = [], array $data = []) |
@@ -86,7 +85,7 @@ discard block |
||
| 86 | 85 | * @param $items |
| 87 | 86 | * @param array $options |
| 88 | 87 | * @param array $data |
| 89 | - * @return mixed |
|
| 88 | + * @return Form |
|
| 90 | 89 | */ |
| 91 | 90 | public function createByArray($items, array $options = [], array $data = []) |
| 92 | 91 | { |
@@ -106,7 +105,7 @@ discard block |
||
| 106 | 105 | } |
| 107 | 106 | |
| 108 | 107 | /** |
| 109 | - * @param $form |
|
| 108 | + * @param Form $form |
|
| 110 | 109 | * @param $items |
| 111 | 110 | */ |
| 112 | 111 | public function buildFormByArray($form, $items) |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | /** |
| 260 | 260 | * Format the label to the proper format. |
| 261 | 261 | * |
| 262 | - * @param $name |
|
| 262 | + * @param string $name |
|
| 263 | 263 | * @return string |
| 264 | 264 | */ |
| 265 | 265 | public function formatLabel($name) |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | /** |
| 292 | 292 | * @param FormField $field |
| 293 | - * @return array |
|
| 293 | + * @return Rules |
|
| 294 | 294 | */ |
| 295 | 295 | public function getFieldValidationRules(FormField $field) |
| 296 | 296 | { |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | |
| 309 | 309 | /** |
| 310 | 310 | * @param FormField[] $fields |
| 311 | - * @return array |
|
| 311 | + * @return Rules |
|
| 312 | 312 | */ |
| 313 | 313 | public function mergeFieldsRules($fields) |
| 314 | 314 | { |
@@ -362,6 +362,7 @@ discard block |
||
| 362 | 362 | /** |
| 363 | 363 | * Alter a form's validity recursively, and add messages with nested form prefix. |
| 364 | 364 | * |
| 365 | + * @param boolean $isValid |
|
| 365 | 366 | * @return void |
| 366 | 367 | */ |
| 367 | 368 | public function alterValid(Form $form, Form $mainForm, &$isValid) |
@@ -386,6 +387,7 @@ discard block |
||
| 386 | 387 | /** |
| 387 | 388 | * Add unprefixed messages with prefix to a MessageBag. |
| 388 | 389 | * |
| 390 | + * @param string|null $prefix |
|
| 389 | 391 | * @return void |
| 390 | 392 | */ |
| 391 | 393 | public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages) |
@@ -32,9 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @param array $rules |
|
| 36 | - * @param array $attributes |
|
| 37 | - * @param array $messages |
|
| 35 | + * @param Rules $rules |
|
| 38 | 36 | */ |
| 39 | 37 | public function append($rules) { |
| 40 | 38 | if (is_array($rules)) { |