@@ -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 | */ |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | /** |
| 231 | 231 | * Format the label to the proper format |
| 232 | 232 | * |
| 233 | - * @param $name |
|
| 233 | + * @param string $name |
|
| 234 | 234 | * @return string |
| 235 | 235 | */ |
| 236 | 236 | public function formatLabel($name) |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php namespace Kris\LaravelFormBuilder; |
| 2 | 2 | |
| 3 | -use Illuminate\Support\Collection; |
|
| 4 | -use Symfony\Component\Translation\TranslatorInterface; |
|
| 3 | +use Illuminate\Contracts\View\Factory as View; |
|
| 5 | 4 | use Illuminate\Database\Eloquent\Model; |
| 5 | +use Illuminate\Support\Collection; |
|
| 6 | 6 | use Kris\LaravelFormBuilder\Fields\FormField; |
| 7 | -use Illuminate\Contracts\View\Factory as View; |
|
| 7 | +use Symfony\Component\Translation\TranslatorInterface; |
|
| 8 | 8 | |
| 9 | 9 | class FormHelper |
| 10 | 10 | { |
@@ -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 |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | * Set single form option on form |
| 473 | 473 | * |
| 474 | 474 | * @param string $option |
| 475 | - * @param mixed $value |
|
| 475 | + * @param boolean $value |
|
| 476 | 476 | * |
| 477 | 477 | * @return $this |
| 478 | 478 | */ |
@@ -506,8 +506,8 @@ discard block |
||
| 506 | 506 | /** |
| 507 | 507 | * Get an option from provided options and call method with that value |
| 508 | 508 | * |
| 509 | - * @param $name |
|
| 510 | - * @param $method |
|
| 509 | + * @param string $name |
|
| 510 | + * @param string $method |
|
| 511 | 511 | */ |
| 512 | 512 | protected function pullFromOptions($name, $method) |
| 513 | 513 | { |
@@ -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 | { |
@@ -903,7 +903,7 @@ discard block |
||
| 903 | 903 | /** |
| 904 | 904 | * Get fields template from options if provided, otherwise fallback to config |
| 905 | 905 | * |
| 906 | - * @return mixed |
|
| 906 | + * @return string |
|
| 907 | 907 | */ |
| 908 | 908 | protected function getFieldsTemplate() |
| 909 | 909 | { |