Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function __invoke(string $username, string $emailAddress, string $token): Response |
||
33 | { |
||
34 | try { |
||
35 | $this->emailAddressManager->confirmNewEmailAddress($username, $emailAddress, $token); |
||
36 | } catch (InvalidArgumentException $exception) { |
||
37 | return new Response(null, Response::HTTP_NOT_FOUND); |
||
38 | } |
||
39 | |||
40 | return new Response(null, Response::HTTP_OK); |
||
41 | } |
||
43 |