src/OAuth2/TokenType/Bearer.php
public function requestHasToken(RequestInterface $request)
    {
        $headers = $request->headers('AUTHORIZATION');

        // check the header, then the querystring, then the request body
        return !empty($headers) || (bool) ($request->request($this->config['token_param_name'])) || (bool) ($request->query($this->config['token_param_name']));
    }
public function requestHasToken(RequestInterface $request)
    {
        $headers = $request->headers('AUTHORIZATION');

        // check the header, then the querystring, then the request body
        return !empty($headers) || (bool) ($request->request($this->config['token_param_name'])) || (bool) ($request->query($this->config['token_param_name']));
    }
public function requestHasToken ( RequestInterface $ request ) { $ headers = $ request -> headers ( 'AUTHORIZATION' ) ; // check the header, then the querystring, then the request body return ! empty ( $ headers ) || ( bool ) ( $ request -> request ( $ this -> config [ 'token_param_name' ] ) ) || ( bool ) ( $ request -> query ( $ this -> config [ 'token_param_name' ] ) ) ; }
Check if the request has supplied token

@see https://github.com/bshaffer/oauth2-server-php/issues/349#issuecomment-37993588
Check if the request has supplied token