original_string: public function getUri()
      {
          $uri = parent::getUri();
  
          if (!\in_array($this->getMethod(), ['POST', 'PUT', 'DELETE', 'PATCH'])) {
              $query = parse_url($uri, PHP_URL_QUERY);
              $currentParameters = [];
              if ($query) {
                  parse_str($query, $currentParameters);
              }
  
              $queryString = http_build_query(array_merge($currentParameters, $this->getValues()), '', '&');
  
              $pos = strpos($uri, '?');
              $base = false === $pos ? $uri : substr($uri, 0, $pos);
              $uri = rtrim($base.'?'.$queryString, '?');
          }
  
          return $uri;
      }
code: public function getUri()
      {
          $uri = parent::getUri();
  
          if (!\in_array($this->getMethod(), ['POST', 'PUT', 'DELETE', 'PATCH'])) {
              $query = parse_url($uri, PHP_URL_QUERY);
              $currentParameters = [];
              if ($query) {
                  parse_str($query, $currentParameters);
              }
  
              $queryString = http_build_query(array_merge($currentParameters, $this->getValues()), '', '&');
  
              $pos = strpos($uri, '?');
              $base = false === $pos ? $uri : substr($uri, 0, $pos);
              $uri = rtrim($base.'?'.$queryString, '?');
          }
  
          return $uri;
      }
code_tokens: public function getUri ( ) { $ uri = parent :: getUri ( ) ; if ( ! \ in_array ( $ this -> getMethod ( ) , [ 'POST' , 'PUT' , 'DELETE' , 'PATCH' ] ) ) { $ query = parse_url ( $ uri , PHP_URL_QUERY ) ; $ currentParameters = [ ] ; if ( $ query ) { parse_str ( $ query , $ currentParameters ) ; } $ queryString = http_build_query ( array_merge ( $ currentParameters , $ this -> getValues ( ) ) , '' , '&' ) ; $ pos = strpos ( $ uri , '?' ) ; $ base = false === $ pos ? $ uri : substr ( $ uri , 0 , $ pos ) ; $ uri = rtrim ( $ base . '?' . $ queryString , '?' ) ; } return $ uri ; }
docstring: Gets the URI of the form.
  
  The returned URI is not the same as the form "action" attribute.
  This method merges the value if the method is GET to mimics
  browser behavior.
  
  @return string The URI
docstring_tokens: Gets the URI of the form .