| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class AdminRoleUpdateRequest extends FormRequest |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Get the URL to redirect to on a validation error. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | protected function getRedirectUrl() |
||
| 29 | { |
||
| 30 | return $this->getSession()->previousUrl(); |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Determine if the user is authorized to make this request. |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function authorize() |
||
| 39 | { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the validation rules that apply to the request. |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function rules() |
||
| 58 | ]; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
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.