Revert changes to throws and returns ordering

This commit is contained in:
sephster 2018-10-13 16:54:31 +01:00
parent f96fca3b48
commit c0efdf0dd0
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F

View File

@ -236,8 +236,9 @@ abstract class AbstractGrant implements GrantTypeInterface
* @param string|array $scopes * @param string|array $scopes
* @param string $redirectUri * @param string $redirectUri
* *
* @return ScopeEntityInterface[]
* @throws OAuthServerException * @throws OAuthServerException
*
* @return ScopeEntityInterface[]
*/ */
public function validateScopes($scopes, $redirectUri = null) public function validateScopes($scopes, $redirectUri = null)
{ {
@ -373,9 +374,10 @@ abstract class AbstractGrant implements GrantTypeInterface
* @param string|null $userIdentifier * @param string|null $userIdentifier
* @param ScopeEntityInterface[] $scopes * @param ScopeEntityInterface[] $scopes
* *
* @return AccessTokenEntityInterface
* @throws OAuthServerException * @throws OAuthServerException
* @throws UniqueTokenIdentifierConstraintViolationException * @throws UniqueTokenIdentifierConstraintViolationException
*
* @return AccessTokenEntityInterface
*/ */
protected function issueAccessToken( protected function issueAccessToken(
\DateInterval $accessTokenTTL, \DateInterval $accessTokenTTL,
@ -493,8 +495,9 @@ abstract class AbstractGrant implements GrantTypeInterface
* *
* @param int $length * @param int $length
* *
* @return string
* @throws OAuthServerException * @throws OAuthServerException
*
* @return string
*/ */
protected function generateUniqueIdentifier($length = 40) protected function generateUniqueIdentifier($length = 40)
{ {