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; namespace OAuth2ServerExamples\Repositories;
use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface; use League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface;
use League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface;
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
use OAuth2ServerExamples\Entities\ScopeEntity; use OAuth2ServerExamples\Entities\ScopeEntity;
@ -33,9 +32,8 @@ class ScopeRepository implements ScopeRepositoryInterface
return $scope; return $scope;
} }
/** /**
* @inheritdoc * {@inheritdoc}
*/ */
public function finalizeScopes( public function finalizeScopes(
array $scopes, array $scopes,

View File

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

View File

@ -134,7 +134,7 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
$loginError = 'Incorrect username or password'; $loginError = 'Incorrect username or password';
} }
} }
// The user hasn't logged in yet so show a login form // The user hasn't logged in yet so show a login form
if ($userId === null) { if ($userId === null) {
$html = $this->getTemplateRenderer()->renderLogin([ $html = $this->getTemplateRenderer()->renderLogin([

View File

@ -112,7 +112,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
// The username + password might be available in $_POST // The username + password might be available in $_POST
$usernameParameter = $this->getRequestParameter('username', $request, null); $usernameParameter = $this->getRequestParameter('username', $request, null);
$passwordParameter = $this->getRequestParameter('password', $request, null); $passwordParameter = $this->getRequestParameter('password', $request, null);
$loginError = null; $loginError = null;
// Assert if the user has logged in already // Assert if the user has logged in already