original_string: protected function cleanRequestUri()
      {
          $requestUri = $this->request->getRequestUri();
  
          $requestUriQuery = parse_url($requestUri, PHP_URL_QUERY);
          parse_str($requestUriQuery, $requestParams);
          if (is_array($requestParams) && count($requestParams) > 0) {
              foreach ($this->ajaxQueryParams as $queryParam) {
                  if (array_key_exists($queryParam, $requestParams)) {
                      unset($requestParams[$queryParam]);
                  }
              }
          }
  
          $this->request->setRequestUri(
              str_replace($requestUriQuery, http_build_query($requestParams), $requestUri)
          );
      }
code: protected function cleanRequestUri()
      {
          $requestUri = $this->request->getRequestUri();
  
          $requestUriQuery = parse_url($requestUri, PHP_URL_QUERY);
          parse_str($requestUriQuery, $requestParams);
          if (is_array($requestParams) && count($requestParams) > 0) {
              foreach ($this->ajaxQueryParams as $queryParam) {
                  if (array_key_exists($queryParam, $requestParams)) {
                      unset($requestParams[$queryParam]);
                  }
              }
          }
  
          $this->request->setRequestUri(
              str_replace($requestUriQuery, http_build_query($requestParams), $requestUri)
          );
      }
code_tokens: protected function cleanRequestUri ( ) { $ requestUri = $ this -> request -> getRequestUri ( ) ; $ requestUriQuery = parse_url ( $ requestUri , PHP_URL_QUERY ) ; parse_str ( $ requestUriQuery , $ requestParams ) ; if ( is_array ( $ requestParams ) && count ( $ requestParams ) > 0 ) { foreach ( $ this -> ajaxQueryParams as $ queryParam ) { if ( array_key_exists ( $ queryParam , $ requestParams ) ) { unset ( $ requestParams [ $ queryParam ] ) ; } } } $ this -> request -> setRequestUri ( str_replace ( $ requestUriQuery , http_build_query ( $ requestParams ) , $ requestUri ) ) ; }
docstring: Remove query parameters added to the request URI for AJAX requests
  
  @return void
docstring_tokens: Remove query parameters added to the request URI for AJAX requests