original_string: public function append($url = '', $argsOrParams = array(), $params = array())
      {
          if (strpos($url, '%s') !== false) {
              $url = vsprintf($url, (array)$argsOrParams);
          } else {
              $params = $argsOrParams;
          }
          if ($params) {
              $url .= (false === strpos($url, '?') ? '?' : '&');
          }
          return $url . (is_array($params) ? http_build_query($params) : $params);
      }
code: public function append($url = '', $argsOrParams = array(), $params = array())
      {
          if (strpos($url, '%s') !== false) {
              $url = vsprintf($url, (array)$argsOrParams);
          } else {
              $params = $argsOrParams;
          }
          if ($params) {
              $url .= (false === strpos($url, '?') ? '?' : '&');
          }
          return $url . (is_array($params) ? http_build_query($params) : $params);
      }
code_tokens: public function append ( $ url = '' , $ argsOrParams = array ( ) , $ params = array ( ) ) { if ( strpos ( $ url , '%s' ) !== false ) { $ url = vsprintf ( $ url , ( array ) $ argsOrParams ) ; } else { $ params = $ argsOrParams ; } if ( $ params ) { $ url .= ( false === strpos ( $ url , '?' ) ? '?' : '&' ) ; } return $ url . ( is_array ( $ params ) ? http_build_query ( $ params ) : $ params ) ; }
docstring: Append parameters to specified URL
  
  @param string $url
  @param string|array $argsOrParams The arguments to replace in URL or the parameters append to the URL
  @param string|array $params The parameters append to the URL
  @return string
docstring_tokens: Append parameters to specified URL