Completed
Pull Request — master (#12)
by
unknown
02:59
created
Command/UpdateUser.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +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
38
+     * @param string $username
39
+     * @param string $password
40
+     * @param string $displayName
41
+     * @param string $email
41 42
      */
42 43
     public function __construct(UserInterface $user, $username, $password, $displayName, $email)
43 44
     {
Please login to merge, or discard this patch.
User/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param string $username
26 26
      * @param string $password
27 27
      * @param string $displayName
28
-     * @param $email
28
+     * @param string $email
29 29
      * @param PasswordResetToken $token
30 30
      */
31 31
     public function __construct($username, $password, $displayName, $email, PasswordResetToken $token = null)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @return string
120
+     * @return PasswordResetToken
121 121
      */
122 122
     public function getPasswordResetToken()
123 123
     {
Please login to merge, or discard this patch.
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/PasswordResetRequestHandler.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.