| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function store(Request $request) |
||
| 31 | { |
||
| 32 | if (! Auth::guard('web')->validate([ |
||
| 33 | 'email' => $request->user()->email, |
||
| 34 | 'password' => $request->password, |
||
| 35 | ])) { |
||
| 36 | throw ValidationException::withMessages([ |
||
| 37 | 'password' => __('messages.password'), |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | |||
| 41 | $request->session()->put('auth.password_confirmed_at', time()); |
||
| 42 | |||
| 43 | return redirect()->intended(RouteServiceProvider::HOME); |
||
| 44 | } |
||
| 46 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.