original_string: protected function fetchProviderData($url, array $headers = [])
      {
          $client = $this->getProvider()->getHttpClient();
          $client->setBaseUrl($url);
  
          if ($headers)
          {
              $client->setDefaultOption('headers', $headers);
          }
  
          $request = $client->get()->send();
          $response = $request->getBody();
  
          return $response;
      }
code: protected function fetchProviderData($url, array $headers = [])
      {
          $client = $this->getProvider()->getHttpClient();
          $client->setBaseUrl($url);
  
          if ($headers)
          {
              $client->setDefaultOption('headers', $headers);
          }
  
          $request = $client->get()->send();
          $response = $request->getBody();
  
          return $response;
      }
code_tokens: protected function fetchProviderData ( $ url , array $ headers = [ ] ) { $ client = $ this -> getProvider ( ) -> getHttpClient ( ) ; $ client -> setBaseUrl ( $ url ) ; if ( $ headers ) { $ client -> setDefaultOption ( 'headers' , $ headers ) ; } $ request = $ client -> get ( ) -> send ( ) ; $ response = $ request -> getBody ( ) ; return $ response ; }
docstring: Fetch provider data
  
  @param       $url
  @param array $headers
  
  @return mixed
docstring_tokens: Fetch provider data