original_string: public function remove_params($params = null) {
          if (!is_array($params)) {
              $params = func_get_args();
          }
          foreach ($params as $param) {
              unset($this->params[$param]);
          }
          return $this->params;
      }
code: public function remove_params($params = null) {
          if (!is_array($params)) {
              $params = func_get_args();
          }
          foreach ($params as $param) {
              unset($this->params[$param]);
          }
          return $this->params;
      }
code_tokens: public function remove_params ( $ params = null ) { if ( ! is_array ( $ params ) ) { $ params = func_get_args ( ) ; } foreach ( $ params as $ param ) { unset ( $ this -> params [ $ param ] ) ; } return $ this -> params ; }
docstring: Remove all params if no arguments passed.
  Remove selected params if arguments are passed.
  
  Can be called as either remove_params('param1', 'param2')
  or remove_params(array('param1', 'param2')).
  
  @param string[]|string $params,... either an array of param names, or 1..n string params to remove as args.
  @return array url parameters
docstring_tokens: Remove all params if no arguments passed . Remove selected params if arguments are passed .