original_string: private function isOAuth2(RequestInterface $request, array $options)
      {
          // The 'auth' option must be set to 'oauth2'.
          if (!isset($options['auth']) || $options['auth'] !== 'oauth2') {
              return false;
          }
  
          // The request must be not for an access token endpoint.
          if ($this->provider->getBaseAccessTokenUrl([]) === $request->getUri()) {
              return false;
          }
  
          return true;
      }
code: private function isOAuth2(RequestInterface $request, array $options)
      {
          // The 'auth' option must be set to 'oauth2'.
          if (!isset($options['auth']) || $options['auth'] !== 'oauth2') {
              return false;
          }
  
          // The request must be not for an access token endpoint.
          if ($this->provider->getBaseAccessTokenUrl([]) === $request->getUri()) {
              return false;
          }
  
          return true;
      }
code_tokens: private function isOAuth2 ( RequestInterface $ request , array $ options ) { // The 'auth' option must be set to 'oauth2'. if ( ! isset ( $ options [ 'auth' ] ) || $ options [ 'auth' ] !== 'oauth2' ) { return false ; } // The request must be not for an access token endpoint. if ( $ this -> provider -> getBaseAccessTokenUrl ( [ ] ) === $ request -> getUri ( ) ) { return false ; } return true ; }
docstring: Check if a request is configured to use OAuth2.
  
  @param RequestInterface $request
  @param array            $options
  
  @return bool
docstring_tokens: Check if a request is configured to use OAuth2 .