From c0efdf0dd071af16586259fb7a00661992588945 Mon Sep 17 00:00:00 2001 From: sephster Date: Sat, 13 Oct 2018 16:54:31 +0100 Subject: [PATCH] Revert changes to throws and returns ordering --- src/Grant/AbstractGrant.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index 5208d398..9b5486c3 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -236,8 +236,9 @@ abstract class AbstractGrant implements GrantTypeInterface * @param string|array $scopes * @param string $redirectUri * - * @return ScopeEntityInterface[] * @throws OAuthServerException + * + * @return ScopeEntityInterface[] */ public function validateScopes($scopes, $redirectUri = null) { @@ -373,9 +374,10 @@ abstract class AbstractGrant implements GrantTypeInterface * @param string|null $userIdentifier * @param ScopeEntityInterface[] $scopes * - * @return AccessTokenEntityInterface * @throws OAuthServerException * @throws UniqueTokenIdentifierConstraintViolationException + * + * @return AccessTokenEntityInterface */ protected function issueAccessToken( \DateInterval $accessTokenTTL, @@ -493,8 +495,9 @@ abstract class AbstractGrant implements GrantTypeInterface * * @param int $length * - * @return string * @throws OAuthServerException + * + * @return string */ protected function generateUniqueIdentifier($length = 40) {