original_string: protected function buildRequest($method, $url, $params = [])
      {
          if (count($params) > 0) {
              $url .= strpos($url, '?') === false ? '?' : '&';
              $url .= http_build_query($params);
          }
          return new Request($url, $method);
      }
code: protected function buildRequest($method, $url, $params = [])
      {
          if (count($params) > 0) {
              $url .= strpos($url, '?') === false ? '?' : '&';
              $url .= http_build_query($params);
          }
          return new Request($url, $method);
      }
code_tokens: protected function buildRequest ( $ method , $ url , $ params = [ ] ) { if ( count ( $ params ) > 0 ) { $ url .= strpos ( $ url , '?' ) === false ? '?' : '&' ; $ url .= http_build_query ( $ params ) ; } return new Request ( $ url , $ method ) ; }
docstring: Build a http request
  @param string $method
  @param string $url
  @param array $params
  @return Request
docstring_tokens: Build a http request