Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class AdminMenuUpdateRequest extends FormRequest |
||
21 | { |
||
22 | /** |
||
23 | * Get the URL to redirect to on a validation error. |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | protected function getRedirectUrl() |
||
28 | { |
||
29 | return $this->getSession()->previousUrl(); |
||
|
|||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Determine if the user is authorized to make this request. |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function authorize() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get the validation rules that apply to the request. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function rules() |
||
52 | ]; |
||
53 | } |
||
55 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.