From 267bd3c5d4f4767e0251474aca501f7293182279 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 23 Mar 2016 14:50:27 -0400 Subject: [PATCH] Applied fixes from StyleCI --- src/Grant/ClientCredentialsGrant.php | 2 +- src/Grant/PasswordGrant.php | 1 - src/Repositories/ScopeRepositoryInterface.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Grant/ClientCredentialsGrant.php b/src/Grant/ClientCredentialsGrant.php index 5b80d02f..3c1db5e0 100644 --- a/src/Grant/ClientCredentialsGrant.php +++ b/src/Grant/ClientCredentialsGrant.php @@ -32,7 +32,7 @@ class ClientCredentialsGrant extends AbstractGrant // Finalize the requested scopes $scopes = $this->scopeRepository->finalizeScopes($scopes, $client); - + // Issue and persist access token $accessToken = $this->issueAccessToken($accessTokenTTL, $client, $client->getIdentifier(), $scopes); diff --git a/src/Grant/PasswordGrant.php b/src/Grant/PasswordGrant.php index 1d2af5e6..40bf39d5 100644 --- a/src/Grant/PasswordGrant.php +++ b/src/Grant/PasswordGrant.php @@ -11,7 +11,6 @@ namespace League\OAuth2\Server\Grant; use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface; -use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface; use League\OAuth2\Server\Entities\Interfaces\UserEntityInterface; use League\OAuth2\Server\Exception\OAuthServerException; use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface; diff --git a/src/Repositories/ScopeRepositoryInterface.php b/src/Repositories/ScopeRepositoryInterface.php index 1f933426..95230bb6 100644 --- a/src/Repositories/ScopeRepositoryInterface.php +++ b/src/Repositories/ScopeRepositoryInterface.php @@ -39,5 +39,5 @@ interface ScopeRepositoryInterface extends RepositoryInterface * * @return \League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface[] */ - public function finalizeScopes(array $scopes = [], ClientEntityInterface $clientEntity, $userIdentifier = null); + public function finalizeScopes(array $scopes, ClientEntityInterface $clientEntity, $userIdentifier = null); }