Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function store(Request $request): RedirectResponse |
||
31 | { |
||
32 | $request->validate([ |
||
|
|||
33 | 'email' => 'required|email', |
||
34 | ]); |
||
35 | |||
36 | // We will send the password reset link to this user. Once we have attempted |
||
37 | // to send the link, we will examine the response then see the message we |
||
38 | // need to show to the user. Finally, we'll send out a proper response. |
||
39 | $status = Password::sendResetLink( |
||
40 | $request->only('email') |
||
41 | ); |
||
42 | |||
43 | if ($status == Password::RESET_LINK_SENT) { |
||
44 | return back()->with('status', __($status)); |
||
45 | } |
||
46 | |||
47 | throw ValidationException::withMessages([ |
||
48 | 'email' => [trans($status)], |
||
49 | ]); |
||
52 |
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.