Applied fixes from StyleCI

This commit is contained in:
Alex Bilbie 2016-03-23 14:50:27 -04:00 committed by StyleCI Bot
parent a18b8c57b2
commit 267bd3c5d4
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);
}