src/Koldy/Http/Request.php
public function getUrl(): string
    {
        $url = $this->url;

        if ($this->getMethod() == self::GET) {
            if (count($this->params) > 0) {
                $params = http_build_query($this->getParams());

                if (strpos('?', $url) !== false && substr($url, -1) != '?') {
                    // just add "&"
                    $url .= $params;
                } else {
                    $url .= '?' . $params;
                }
            }
        }
        return $url;
    }
public function getUrl(): string
    {
        $url = $this->url;

        if ($this->getMethod() == self::GET) {
            if (count($this->params) > 0) {
                $params = http_build_query($this->getParams());

                if (strpos('?', $url) !== false && substr($url, -1) != '?') {
                    // just add "&"
                    $url .= $params;
                } else {
                    $url .= '?' . $params;
                }
            }
        }
        return $url;
    }
public function getUrl ( ) : string { $ url = $ this -> url ; if ( $ this -> getMethod ( ) == self :: GET ) { if ( count ( $ this -> params ) > 0 ) { $ params = http_build_query ( $ this -> getParams ( ) ) ; if ( strpos ( '?' , $ url ) !== false && substr ( $ url , - 1 ) != '?' ) { // just add "&" $ url .= $ params ; } else { $ url .= '?' . $ params ; } } } return $ url ; }
Get the URL on which the request will be fired

@return string
Get the URL on which the request will be fired