original_string: public function generateUrl($call, array $params = array())
      {
          $url = $this->baseUrl . '/' . $this->version . '/' . $call;
          if (count($params) > 0) {
              $queryString = http_build_query($params, null, '&');
              $queryString = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $queryString);
              $url .= '?' . $queryString;
          }
  
          return $url;
      }
code: public function generateUrl($call, array $params = array())
      {
          $url = $this->baseUrl . '/' . $this->version . '/' . $call;
          if (count($params) > 0) {
              $queryString = http_build_query($params, null, '&');
              $queryString = preg_replace('/%5B[0-9]+%5D/simU', '%5B%5D', $queryString);
              $url .= '?' . $queryString;
          }
  
          return $url;
      }
code_tokens: public function generateUrl ( $ call , array $ params = array ( ) ) { $ url = $ this -> baseUrl . '/' . $ this -> version . '/' . $ call ; if ( count ( $ params ) > 0 ) { $ queryString = http_build_query ( $ params , null , '&' ) ; $ queryString = preg_replace ( '/%5B[0-9]+%5D/simU' , '%5B%5D' , $ queryString ) ; $ url .= '?' . $ queryString ; } return $ url ; }
docstring: generates a url for an api request
  
  @param       $call
  @param array $params
  
  @return string
docstring_tokens: generates a url for an api request