From 687664092039b0bbf9a52f95eb9320906c5227c9 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 14 Mar 2024 22:01:32 +0300 Subject: [PATCH] docblock changes --- .../site/src/Repository/ScopeRepository.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/com_oauthserver/site/src/Repository/ScopeRepository.php b/com_oauthserver/site/src/Repository/ScopeRepository.php index e92d369..f85bd7c 100644 --- a/com_oauthserver/site/src/Repository/ScopeRepository.php +++ b/com_oauthserver/site/src/Repository/ScopeRepository.php @@ -48,16 +48,17 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf } /** - * @param Scope[] $scopes - * @param $grantType - * @param \League\OAuth2\Server\Entities\ClientEntityInterface $clientEntity - * @param null $userIdentifier + * @param Scope[] $scopes + * @param string $grantType + * @param ClientEntityInterface $clientEntity + * @param null $userIdentifier * * @return mixed - * @throws \League\OAuth2\Server\Exception\OAuthServerException + * @throws OAuthServerException + * @throws \Exception * @since version */ - public function finalizeScopes(array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null) + public function finalizeScopes(array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null): array { $client = $this->clientModel->getItemByIdentifier($clientEntity->getIdentifier()); @@ -90,7 +91,7 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf * @param array $requestedScopes * * @return array - * @throws \League\OAuth2\Server\Exception\OAuthServerException + * @throws OAuthServerException * @since version */ private function setupScopes(object $client, array $requestedScopes): array