Add whitespace around control blocks

This commit is contained in:
sephster
2019-05-05 09:03:13 +01:00
parent 9236e842d9
commit 86869eafbb
4 changed files with 5 additions and 0 deletions

View File

@@ -477,6 +477,7 @@ abstract class AbstractGrant implements GrantTypeInterface
protected function issueRefreshToken(AccessTokenEntityInterface $accessToken)
{
$refreshToken = $this->refreshTokenRepository->getNewRefreshToken();
if ($refreshToken === null) {
return null;
}
@@ -485,6 +486,7 @@ abstract class AbstractGrant implements GrantTypeInterface
$refreshToken->setAccessToken($accessToken);
$maxGenerationAttempts = self::MAX_RANDOM_TOKEN_GENERATION_ATTEMPTS;
while ($maxGenerationAttempts-- > 0) {
$refreshToken->setIdentifier($this->generateUniqueIdentifier());
try {