Add whitespace around control blocks

This commit is contained in:
sephster 2019-05-05 09:03:13 +01:00
parent 9236e842d9
commit 86869eafbb
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F
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 {

View File

@ -152,6 +152,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
// Issue and persist new refresh token if given
$refreshToken = $this->issueRefreshToken($accessToken);
if ($refreshToken !== null) {
$this->getEmitter()->emit(new RequestEvent(RequestEvent::REFRESH_TOKEN_ISSUED, $request));
$responseType->setRefreshToken($refreshToken);

View File

@ -63,6 +63,7 @@ class PasswordGrant extends AbstractGrant
// Issue and persist new refresh token if given
$refreshToken = $this->issueRefreshToken($accessToken);
if ($refreshToken !== null) {
$this->getEmitter()->emit(new RequestEvent(RequestEvent::REFRESH_TOKEN_ISSUED, $request));
$responseType->setRefreshToken($refreshToken);

View File

@ -70,6 +70,7 @@ class RefreshTokenGrant extends AbstractGrant
// Issue and persist new refresh token if given
$refreshToken = $this->issueRefreshToken($accessToken);
if ($refreshToken !== null) {
$this->getEmitter()->emit(new RequestEvent(RequestEvent::REFRESH_TOKEN_ISSUED, $request));
$responseType->setRefreshToken($refreshToken);