@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public static function generate() |
56 | 56 | { |
57 | - $token = time() . base64_encode(random_bytes(10)); |
|
57 | + $token = time().base64_encode(random_bytes(10)); |
|
58 | 58 | |
59 | 59 | return new self($token); |
60 | 60 | } |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SumoCoders\FrameworkMultiUserBundle\Event\PasswordResetTokenCreated; |
6 | 6 | use SumoCoders\FrameworkMultiUserBundle\User\PasswordReset as UserPasswordReset; |
7 | 7 | use SumoCoders\FrameworkMultiUserBundle\User\UserRepositoryCollection; |
8 | -use Swift_Mailer; |
|
9 | 8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
10 | 9 | |
11 | 10 | class PasswordResetRequestHandler |
@@ -35,10 +35,10 @@ |
||
35 | 35 | * UpdateUser constructor. |
36 | 36 | * |
37 | 37 | * @param UserInterface $user |
38 | - * @param $username |
|
39 | - * @param $password |
|
40 | - * @param $displayName |
|
41 | - * @param $email |
|
38 | + * @param string $username |
|
39 | + * @param string $password |
|
40 | + * @param string $displayName |
|
41 | + * @param string $email |
|
42 | 42 | */ |
43 | 43 | public function __construct(UserInterface $user, $username, $password, $displayName, $email) |
44 | 44 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $handler->handle($command); |
38 | 38 | } |
39 | 39 | |
40 | - return [ 'form' => $form->createView(), ]; |
|
40 | + return ['form' => $form->createView(), ]; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -134,7 +134,7 @@ |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @return string |
|
137 | + * @return PasswordResetToken |
|
138 | 138 | */ |
139 | 139 | public function getPasswordResetToken() |
140 | 140 | { |