Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __invoke(EmailVerificationRequest $request): RedirectResponse |
||
16 | { |
||
17 | if ($request->user()->hasVerifiedEmail()) { |
||
|
|||
18 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); |
||
19 | } |
||
20 | |||
21 | if ($request->user()->markEmailAsVerified()) { |
||
22 | event(new Verified($request->user())); |
||
23 | } |
||
24 | |||
25 | return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); |
||
26 | } |
||
28 |
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.