Applied fixes from StyleCI

This commit is contained in:
Alex Bilbie 2016-03-24 06:07:20 -04:00 committed by StyleCI Bot
parent 2b76e2bf6e
commit 630a92b45f
4 changed files with 4 additions and 6 deletions

View File

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

View File

@ -10,7 +10,7 @@ use OAuth2ServerExamples\Entities\UserEntity;
class UserRepository implements UserRepositoryInterface
{
/**
* @inheritdoc
* {@inheritdoc}
*/
public function getUserEntityByUserCredentials(
$username,

View File

@ -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([

View File

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