Completed
Pull Request — master (#21)
by
unknown
17:59 queued 09:08
created
Entity/RefreshToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     /**
114 114
      * Get valid.
115 115
      *
116
-     * @return \DateTime
116
+     * @return string
117 117
      */
118 118
     public function getValid()
119 119
     {
Please login to merge, or discard this patch.
Model/RefreshTokenInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     /**
68 68
      * Get user.
69 69
      *
70
-     * @return $username
70
+     * @return string
71 71
      */
72 72
     public function getUsername();
73 73
 
Please login to merge, or discard this patch.
Service/RefreshToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      *
47 47
      * @param Request $request
48 48
      *
49
-     * @return mixed
49
+     * @return \Symfony\Component\HttpFoundation\Response|\Symfony\Component\HttpFoundation\JsonResponse
50 50
      *
51 51
      * @throws AuthenticationException
52 52
      */
Please login to merge, or discard this patch.
EventListener/AttachRefreshTokenOnSuccessListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         if (!$refreshToken instanceof RefreshToken) {
46 46
             $datetime = new \DateTime();
47
-            $datetime->modify('+' . $this->ttl . ' seconds');
47
+            $datetime->modify('+'.$this->ttl.' seconds');
48 48
 
49 49
             $refreshToken = $this->refreshTokenManager->create();
50 50
             $refreshToken->setUsername($user->getUsername());
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         } else {
70 70
             if ($refreshToken->getValid() < new \DateTime()) {
71 71
                 $datetime = new \DateTime();
72
-                $datetime->modify('+' . $this->ttl . ' seconds');
72
+                $datetime->modify('+'.$this->ttl.' seconds');
73 73
 
74 74
                 $refreshToken->setValid($datetime);
75 75
             }
Please login to merge, or discard this patch.