original_string: private function authenticateRequest(RequestInterface $request, AccessToken $token)
      {
          foreach ($this->provider->getHeaders($token->getToken()) as $name => $value) {
              $request = $request->withHeader($name, $value);
          }
  
          return $request;
      }
code: private function authenticateRequest(RequestInterface $request, AccessToken $token)
      {
          foreach ($this->provider->getHeaders($token->getToken()) as $name => $value) {
              $request = $request->withHeader($name, $value);
          }
  
          return $request;
      }
code_tokens: private function authenticateRequest ( RequestInterface $ request , AccessToken $ token ) { foreach ( $ this -> provider -> getHeaders ( $ token -> getToken ( ) ) as $ name => $ value ) { $ request = $ request -> withHeader ( $ name , $ value ) ; } return $ request ; }
docstring: Add authentication to an HTTP request.
  
  @param \Psr\Http\Message\RequestInterface      $request
  @param \League\OAuth2\Client\Token\AccessToken $token
  
  @return \Psr\Http\Message\RequestInterface
docstring_tokens: Add authentication to an HTTP request .