1 | <?php |
||
20 | class UserSettingsUpdateRequest extends FormRequest |
||
21 | { |
||
22 | /** |
||
23 | * Determine if the user is authorized to make this request. |
||
24 | * |
||
25 | * @return bool |
||
26 | */ |
||
27 | public function authorize() |
||
31 | |||
32 | /** |
||
33 | * Process given request data before validation. |
||
34 | * |
||
35 | * @param array $data |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function process($data) |
||
47 | |||
48 | /** |
||
49 | * Get the validation rules that apply to the request. |
||
50 | * |
||
51 | * @return array |
||
|
|||
52 | */ |
||
53 | public function rules() |
||
62 | } |
||
63 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.