Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
25 | 1 | public function __invoke(Guard $guard, UpdateRequest $request): Response |
|
26 | { |
||
27 | /** @var \App\Models\User $user */ |
||
28 | 1 | $user = $guard->user(); |
|
29 | |||
30 | 1 | $user->update([ |
|
31 | 1 | 'password' => $this->hasher->make($request->input('password')), |
|
32 | ]); |
||
33 | |||
34 | 1 | return $this->responseFactory->noContent(Response::HTTP_OK); |
|
35 | } |
||
37 |