original_string: private function collectRequest(GuzzleRequestInterface $request)
      {
          $body = null;
          if ($request instanceof EntityEnclosingRequestInterface) {
              $body = (string) $request->getBody();
          }
  
          return array(
              'headers' => $request->getHeaders(),
              'method'  => $request->getMethod(),
              'scheme'  => $request->getScheme(),
              'host'    => $request->getHost(),
  	    'port'    => $request->getPort(),
              'path'    => $request->getPath(),
              'query'   => $request->getQuery(),
              'body'    => $body
          );
      }
code: private function collectRequest(GuzzleRequestInterface $request)
      {
          $body = null;
          if ($request instanceof EntityEnclosingRequestInterface) {
              $body = (string) $request->getBody();
          }
  
          return array(
              'headers' => $request->getHeaders(),
              'method'  => $request->getMethod(),
              'scheme'  => $request->getScheme(),
              'host'    => $request->getHost(),
  	    'port'    => $request->getPort(),
              'path'    => $request->getPath(),
              'query'   => $request->getQuery(),
              'body'    => $body
          );
      }
code_tokens: private function collectRequest ( GuzzleRequestInterface $ request ) { $ body = null ; if ( $ request instanceof EntityEnclosingRequestInterface ) { $ body = ( string ) $ request -> getBody ( ) ; } return array ( 'headers' => $ request -> getHeaders ( ) , 'method' => $ request -> getMethod ( ) , 'scheme' => $ request -> getScheme ( ) , 'host' => $ request -> getHost ( ) , 'port' => $ request -> getPort ( ) , 'path' => $ request -> getPath ( ) , 'query' => $ request -> getQuery ( ) , 'body' => $ body ) ; }
docstring: Collect & sanitize data about a Guzzle request
  
  @param Guzzle\Http\Message\RequestInterface $request
  
  @return array
docstring_tokens: Collect & sanitize data about a Guzzle request