Merge pull request #487 from thephpleague/analysis-z4xV5G

Applied fixes from StyleCI
This commit is contained in:
Alex Bilbie 2016-03-23 18:58:35 +00:00
commit 57216984e9
3 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);
}