Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
28 | public function __invoke(Request $request, string $username): Response |
||
29 | { |
||
30 | $user = $this->userRepository->findOneBy(['email' => $username]); |
||
31 | if (!$user) { |
||
32 | return $this->getResponse($request, null, Response::HTTP_NOT_FOUND); |
||
33 | } |
||
34 | $this->passwordManager->requestResetEmail($user); |
||
35 | |||
36 | return $this->getResponse($request); |
||
37 | } |
||
39 |