We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
8 | class MenuRequest extends FormRequest |
||
9 | { |
||
10 | /** |
||
11 | * Determine if the user is authorized to make this request. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function authorize() |
||
20 | |||
21 | /** |
||
22 | * Get the validation rules that apply to the request. |
||
23 | * |
||
24 | * @return array |
||
|
|||
25 | */ |
||
26 | public function rules() |
||
32 | |||
33 | /** |
||
34 | * Get the validation attributes that apply to the request. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | public function attributes() |
||
44 | |||
45 | /** |
||
46 | * Get the validation messages that apply to the request. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | public function messages() |
||
56 | } |
||
57 |
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.