Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
25 | public function __invoke(Request $request, string $username): Response |
||
26 | { |
||
27 | try { |
||
28 | $this->passwordManager->requestResetEmail($username); |
||
29 | } catch (NotFoundHttpException $exception) { |
||
30 | return $this->responseFactory->create($request, null, Response::HTTP_NOT_FOUND); |
||
31 | } |
||
32 | |||
33 | return $this->responseFactory->create($request); |
||
34 | } |
||
36 |