Completed
Pull Request — master (#12)
by
unknown
11:38
created
Security/PasswordResetToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Command/RequestPasswordResetHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Command/UpdateUser.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Controller/PasswordResetController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
User/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @return string
137
+     * @return PasswordResetToken
138 138
      */
139 139
     public function getPasswordResetToken()
140 140
     {
Please login to merge, or discard this patch.