@@ -62,7 +62,7 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * @param Request $request |
| 64 | 64 | * |
| 65 | - * @return array |
|
| 65 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 66 | 66 | */ |
| 67 | 67 | public function requestAction(Request $request) |
| 68 | 68 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 14 | 14 | use Symfony\Component\HttpFoundation\Request; |
| 15 | 15 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; |
| 16 | -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
|
| 17 | 16 | |
| 18 | 17 | final class RequestPasswordResetController |
| 19 | 18 | { |
@@ -61,6 +61,6 @@ |
||
| 61 | 61 | |
| 62 | 62 | $this->handler->handle($userTransferObject); |
| 63 | 63 | |
| 64 | - $output->writeln($userTransferObject->userName . ' has been created'); |
|
| 64 | + $output->writeln($userTransferObject->userName.' has been created'); |
|
| 65 | 65 | } |
| 66 | 66 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public static function generate() |
| 52 | 52 | { |
| 53 | - $token = md5(time() . random_bytes(10)); |
|
| 53 | + $token = md5(time().random_bytes(10)); |
|
| 54 | 54 | |
| 55 | 55 | return new self($token); |
| 56 | 56 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public static function withUsername($username) |
| 16 | 16 | { |
| 17 | - return new self('No user found with username "' . $username . '".'); |
|
| 17 | + return new self('No user found with username "'.$username.'".'); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -24,6 +24,6 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public static function withToken(PasswordResetToken $token) |
| 26 | 26 | { |
| 27 | - return new self('No user found with password reset token "' . $token->getToken() . '".'); |
|
| 27 | + return new self('No user found with password reset token "'.$token->getToken().'".'); |
|
| 28 | 28 | } |
| 29 | 29 | } |