Completed
Pull Request — master (#12)
by
unknown
03:24
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.
Security/PasswordResetToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     private static function generatePasswordResetToken()
11 11
     {
12
-        return time() . base64_encode(random_bytes(10));
12
+        return time().base64_encode(random_bytes(10));
13 13
     }
14 14
 
15 15
     public static function validateToken(UserInterface $user, $token)
Please login to merge, or discard this patch.
Command/PasswordResetRequestHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      */
86 86
     private function getPasswordResetMessage(PasswordResetInterface $user)
87 87
     {
88
-        $url = $this->router->generate('multi_user_reset_password',[], true);
88
+        $url = $this->router->generate('multi_user_reset_password', [], true);
89 89
         $token = '?token='.urlencode($user->getPasswordResetToken());
90 90
 
91 91
         return $this->translator->trans('sumocoders.multiuserbundle.mail.request_password', ['%link%' => $url.$token]);
Please login to merge, or discard this patch.