@@ -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 | { |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php namespace Kris\LaravelFormBuilder; |
| 2 | 2 | |
| 3 | +use Illuminate\Contracts\Validation\Factory as ValidatorFactory; |
|
| 4 | +use Illuminate\Contracts\Validation\Validator; |
|
| 5 | +use Illuminate\Http\Exception\HttpResponseException; |
|
| 3 | 6 | use Illuminate\Http\Request; |
| 4 | 7 | use Illuminate\Support\Arr; |
| 5 | 8 | use Kris\LaravelFormBuilder\Fields\FormField; |
| 6 | -use Illuminate\Contracts\Validation\Validator; |
|
| 7 | -use Illuminate\Http\Exception\HttpResponseException; |
|
| 8 | -use Illuminate\Contracts\Validation\Factory as ValidatorFactory; |
|
| 9 | 9 | |
| 10 | 10 | class Form |
| 11 | 11 | { |