original_string: public function execGET($url, array $params = [])
      {
          $url = $this->baseUrl . $url;
  
          // Build the query from the parameters
          if ($params !== []) {
              $url .= '?' . http_build_query($params);
          }
  
          // Set request options
          $this->addOptions([
              CURLOPT_URL => $url,
              CURLOPT_HTTPGET => true,
          ]);
  
          return $this->exec();
      }
code: public function execGET($url, array $params = [])
      {
          $url = $this->baseUrl . $url;
  
          // Build the query from the parameters
          if ($params !== []) {
              $url .= '?' . http_build_query($params);
          }
  
          // Set request options
          $this->addOptions([
              CURLOPT_URL => $url,
              CURLOPT_HTTPGET => true,
          ]);
  
          return $this->exec();
      }
code_tokens: public function execGET ( $ url , array $ params = [ ] ) { $ url = $ this -> baseUrl . $ url ; // Build the query from the parameters if ( $ params !== [ ] ) { $ url .= '?' . http_build_query ( $ params ) ; } // Set request options $ this -> addOptions ( [ CURLOPT_URL => $ url , CURLOPT_HTTPGET => true , ] ) ; return $ this -> exec ( ) ; }
docstring: Execute a GET request to a given URL, with optional parameters.
  
  @param string   $url
  @param string[] $params Array of query parameter $key=>$value pairs.
  @return ConnectionReturn The server's response
docstring_tokens: Execute a GET request to a given URL with optional parameters .