Test Setup Failed
Pull Request — master (#83)
by
unknown
18:11
created
EventListener/AttachRefreshTokenOnSuccessListener.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,9 @@
 block discarded – undo
43 43
         $this->requestStack = $requestStack;
44 44
         $this->userManager = $userManager;
45 45
         $this->getUsername = 'getUsername';
46
-        if ($getUsername)
47
-            $this->getUsername = $getUsername;
46
+        if ($getUsername) {
47
+                    $this->getUsername = $getUsername;
48
+        }
48 49
     }
49 50
 
50 51
     public function attachRefreshToken(AuthenticationSuccessEvent $event)
Please login to merge, or discard this patch.
Doctrine/RefreshTokenManager.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -106,11 +106,11 @@
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-    * @param RefreshTokenInterface[] $tokens
110
-    * @param bool                    $andFlush
111
-    *
112
-    * @return RefreshTokenInterface[]
113
-    */
109
+     * @param RefreshTokenInterface[] $tokens
110
+     * @param bool                    $andFlush
111
+     *
112
+     * @return RefreshTokenInterface[]
113
+     */
114 114
     public function revokeTokens($tokens, $andFlush)
115 115
     {
116 116
         foreach ($tokens as $token) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,9 @@
 block discarded – undo
65 65
     public function save(RefreshTokenInterface $refreshToken, $andFlush = true)
66 66
     {
67 67
         $offset = $this->maxTokenByUser;
68
-        if (!$andFlush)
69
-            $offset--;
68
+        if (!$andFlush) {
69
+                    $offset--;
70
+        }
70 71
         $username = $refreshToken->getUsername();
71 72
         $this->objectManager->persist($refreshToken);
72 73
 
Please login to merge, or discard this patch.