protected function updateOptions(UriInterface $uri)
    {
        $query = $this->options['query'];
        if ($this->options['reuseParams']) {
            $query = array_merge(
                $query,
                $this->request->getQueryParams()
            );
        }
        $queryString = http_build_query($query);
        $uri = $uri->withQuery($queryString);
        return $this->updateHostName($uri);
    }
protected function updateOptions(UriInterface $uri)
    {
        $query = $this->options['query'];
        if ($this->options['reuseParams']) {
            $query = array_merge(
                $query,
                $this->request->getQueryParams()
            );
        }
        $queryString = http_build_query($query);
        $uri = $uri->withQuery($queryString);
        return $this->updateHostName($uri);
    }
protected function updateOptions ( UriInterface $ uri ) { $ query = $ this -> options [ 'query' ] ; if ( $ this -> options [ 'reuseParams' ] ) { $ query = array_merge ( $ query , $ this -> request -> getQueryParams ( ) ) ; } $ queryString = http_build_query ( $ query ) ; $ uri = $ uri -> withQuery ( $ queryString ) ; return $ this -> updateHostName ( $ uri ) ; }
Updates the URI according to existing options

@param UriInterface $uri

@return UriInterface
Updates the URI according to existing options