Changed the order and added missing throws

This commit is contained in:
Hannes Van De Vreken 2015-01-23 11:21:12 +01:00
parent 166362d3cd
commit dd795a82f4

View File

@ -98,9 +98,10 @@ class ResourceServer extends AbstractServer
* @param bool $headerOnly Limit Access Token to Authorization header * @param bool $headerOnly Limit Access Token to Authorization header
* @param \League\OAuth2\Server\Entity\AccessTokenEntity|null $accessToken Access Token * @param \League\OAuth2\Server\Entity\AccessTokenEntity|null $accessToken Access Token
* *
* @return bool
*
* @throws \League\OAuth2\Server\Exception\AccessDeniedException * @throws \League\OAuth2\Server\Exception\AccessDeniedException
* @throws \League\OAuth2\Server\Exception\InvalidRequestException
*
* @return bool
*/ */
public function isValidRequest($headerOnly = true, $accessToken = null) public function isValidRequest($headerOnly = true, $accessToken = null)
{ {