@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * Set single form option on form |
| 437 | 437 | * |
| 438 | 438 | * @param string $option |
| 439 | - * @param mixed $value |
|
| 439 | + * @param boolean $value |
|
| 440 | 440 | * |
| 441 | 441 | * @return $this |
| 442 | 442 | */ |
@@ -469,8 +469,8 @@ discard block |
||
| 469 | 469 | /** |
| 470 | 470 | * Get an option from provided options and call method with that value |
| 471 | 471 | * |
| 472 | - * @param $name |
|
| 473 | - * @param $method |
|
| 472 | + * @param string $name |
|
| 473 | + * @param string $method |
|
| 474 | 474 | */ |
| 475 | 475 | protected function pullFromOptions($name, $method) |
| 476 | 476 | { |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | /** |
| 805 | 805 | * Get template from options if provided, otherwise fallback to config |
| 806 | 806 | * |
| 807 | - * @return mixed |
|
| 807 | + * @return string |
|
| 808 | 808 | */ |
| 809 | 809 | protected function getTemplate() |
| 810 | 810 | { |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * Set up a single child element for a collection |
| 117 | 117 | * |
| 118 | 118 | * @param FormField $field |
| 119 | - * @param $name |
|
| 119 | + * @param string $name |
|
| 120 | 120 | * @param null $value |
| 121 | 121 | * @return FormField |
| 122 | 122 | */ |
@@ -197,8 +197,8 @@ discard block |
||
| 197 | 197 | /** |
| 198 | 198 | * Transform array like syntax to dot syntax |
| 199 | 199 | * |
| 200 | - * @param $key |
|
| 201 | - * @return mixed |
|
| 200 | + * @param string $key |
|
| 201 | + * @return string |
|
| 202 | 202 | */ |
| 203 | 203 | protected function transformKey($key) |
| 204 | 204 | { |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | /** |
| 603 | 603 | * Get this field's attributes, probably just one. |
| 604 | 604 | * |
| 605 | - * @return array |
|
| 605 | + * @return string[] |
|
| 606 | 606 | */ |
| 607 | 607 | public function getAllAttributes() |
| 608 | 608 | { |
@@ -3,10 +3,8 @@ |
||
| 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 | 7 | use Kris\LaravelFormBuilder\RulesParser; |
| 9 | -use Illuminate\Database\Eloquent\Collection; |
|
| 10 | 8 | |
| 11 | 9 | /** |
| 12 | 10 | * Class FormField |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | /** |
| 234 | 234 | * Format the label to the proper format |
| 235 | 235 | * |
| 236 | - * @param $name |
|
| 236 | + * @param string $name |
|
| 237 | 237 | * @return string |
| 238 | 238 | */ |
| 239 | 239 | public function formatLabel($name) |
@@ -339,6 +339,7 @@ discard block |
||
| 339 | 339 | |
| 340 | 340 | /** |
| 341 | 341 | * Add unprefixed messages with prefix to a MessageBag |
| 342 | + * @param string|null $prefix |
|
| 342 | 343 | */ |
| 343 | 344 | public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages) |
| 344 | 345 | { |