From 630a92b45fe598ab7c84fdd0c41281f113f26c27 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 24 Mar 2016 06:07:20 -0400 Subject: [PATCH] Applied fixes from StyleCI --- examples/src/Repositories/ScopeRepository.php | 4 +--- examples/src/Repositories/UserRepository.php | 2 +- src/Grant/AuthCodeGrant.php | 2 +- src/Grant/ImplicitGrant.php | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/src/Repositories/ScopeRepository.php b/examples/src/Repositories/ScopeRepository.php index 441c0116..26aa15cb 100644 --- a/examples/src/Repositories/ScopeRepository.php +++ b/examples/src/Repositories/ScopeRepository.php @@ -3,7 +3,6 @@ namespace OAuth2ServerExamples\Repositories; use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface; -use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface; use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; use OAuth2ServerExamples\Entities\ScopeEntity; @@ -33,9 +32,8 @@ class ScopeRepository implements ScopeRepositoryInterface return $scope; } - /** - * @inheritdoc + * {@inheritdoc} */ public function finalizeScopes( array $scopes, diff --git a/examples/src/Repositories/UserRepository.php b/examples/src/Repositories/UserRepository.php index f69e93cf..1ee09fc1 100644 --- a/examples/src/Repositories/UserRepository.php +++ b/examples/src/Repositories/UserRepository.php @@ -10,7 +10,7 @@ use OAuth2ServerExamples\Entities\UserEntity; class UserRepository implements UserRepositoryInterface { /** - * @inheritdoc + * {@inheritdoc} */ public function getUserEntityByUserCredentials( $username, diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index eec6d5f0..251c782d 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -134,7 +134,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant $loginError = 'Incorrect username or password'; } } - + // The user hasn't logged in yet so show a login form if ($userId === null) { $html = $this->getTemplateRenderer()->renderLogin([ diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index eaab499d..11950a78 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -112,7 +112,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant // The username + password might be available in $_POST $usernameParameter = $this->getRequestParameter('username', $request, null); $passwordParameter = $this->getRequestParameter('password', $request, null); - + $loginError = null; // Assert if the user has logged in already