Applied fixes from StyleCI

This commit is contained in:
Alex Bilbie 2016-03-10 12:40:28 -05:00 committed by StyleCI Bot
parent f7f3cdee24
commit c40a10a071
5 changed files with 5 additions and 6 deletions

View File

@ -44,7 +44,7 @@ class ImplicitGrantTest extends \PHPUnit_Framework_TestCase
[],
[],
[
'response_type' => 'token'
'response_type' => 'token',
]
);

View File

@ -35,6 +35,7 @@ class ResourceServerMiddlewareTest extends \PHPUnit_Framework_TestCase
new Response(),
function () {
$this->assertEquals('test', func_get_args()[0]->getAttribute('oauth_access_token_id'));
return func_get_args()[1];
}
);
@ -69,5 +70,4 @@ class ResourceServerMiddlewareTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(401, $response->getStatusCode());
}
}

View File

@ -10,7 +10,6 @@ use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
use League\OAuth2\Server\ResponseTypes\BearerTokenResponse;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\Request;
use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequest;

View File

@ -15,7 +15,6 @@ use League\OAuth2\Server\Repositories\UserRepositoryInterface;
use League\OAuth2\Server\ResponseTypes\BearerTokenResponse;
use League\OAuth2\Server\Server;
use LeagueTests\Stubs\StubResponseType;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Zend\Diactoros\ServerRequest;

View File

@ -45,8 +45,9 @@ class StubResponseType extends AbstractResponseType
/**
* @param ServerRequestInterface $request
*
* @return \Psr\Http\Message\ServerRequestInterface
* @throws \League\OAuth2\Server\Exception\OAuthServerException
*
* @return \Psr\Http\Message\ServerRequestInterface
*/
public function determineAccessTokenInHeader(ServerRequestInterface $request)
{