| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function verify(string $token) |
||
| 17 | { |
||
| 18 | $user = app(config('verify-new-email.model'))->whereToken($token)->firstOr(['*'], function () { |
||
|
|
|||
| 19 | throw new InvalidVerificationLinkException( |
||
| 20 | __('The verification link is not valid anymore.') |
||
| 21 | ); |
||
| 22 | })->tap(function ($pendingUserEmail) { |
||
| 23 | $pendingUserEmail->activate(); |
||
| 24 | })->user; |
||
| 25 | |||
| 26 | if (config('verify-new-email.login_after_verification')) { |
||
| 27 | Auth::guard()->login($user, config('verify-new-email.login_remember')); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $this->authenticated(); |
||
| 31 | } |
||
| 38 |
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.