diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 876b0083..885776ec 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -191,7 +191,6 @@ class AuthorizationServer implements EmitterAwareInterface if ($tokenResponse instanceof ResponseTypeInterface) { return $tokenResponse->generateHttpResponse($response); } - } throw OAuthServerException::unsupportedGrantType(); diff --git a/src/Exception/OAuthServerException.php b/src/Exception/OAuthServerException.php index 97fc142e..b67bcf03 100644 --- a/src/Exception/OAuthServerException.php +++ b/src/Exception/OAuthServerException.php @@ -34,7 +34,7 @@ class OAuthServerException extends \Exception private $redirectUri; /** - * @var array + * @var array */ private $payload; @@ -245,7 +245,7 @@ class OAuthServerException extends \Exception * * @param ResponseInterface $response * @param bool $useFragment True if errors should be in the URI fragment instead of query string - * @param int $jsonOptions options passed to json_encode + * @param int $jsonOptions options passed to json_encode * * @return ResponseInterface */ diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index dfb96743..19e3e684 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -33,7 +33,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant /** * @param \DateInterval $accessTokenTTL - * @param string $queryDelimiter + * @param string $queryDelimiter */ public function __construct(\DateInterval $accessTokenTTL, $queryDelimiter = '#') { diff --git a/tests/AuthorizationServerTest.php b/tests/AuthorizationServerTest.php index 07783841..b003c23f 100644 --- a/tests/AuthorizationServerTest.php +++ b/tests/AuthorizationServerTest.php @@ -19,15 +19,14 @@ use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\ScopeEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; -use Psr\Http\Message\ResponseInterface; use PHPUnit\Framework\TestCase; +use Psr\Http\Message\ResponseInterface; use Zend\Diactoros\Response; use Zend\Diactoros\ServerRequest; use Zend\Diactoros\ServerRequestFactory; class AuthorizationServerTest extends TestCase { - const DEFAULT_SCOPE = 'basic'; public function setUp()