@@ -43,8 +43,9 @@ |
||
| 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) |
@@ -106,11 +106,11 @@ |
||
| 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) { |
@@ -65,8 +65,9 @@ |
||
| 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 | |