UrlBuilder.php
public function returnUrl()
    {
        $return = '';

        $return .= empty($this->_urlParts['scheme']) ? '' : $this->_urlParts['scheme'] . '://';

        $return .= empty($this->_urlParts['user']) ? '' : $this->_urlParts['user'];
        $return .= empty($this->_urlParts['pass']) || empty($this->_urlParts['user']) ? '' : ':' . $this->_urlParts['pass'];

        $return .= empty($this->_urlParts['user']) ? '' : '@';

        $return .= empty($this->_urlParts['host']) ? '' : $this->_urlParts['host'];
        $return .= empty($this->_urlParts['port']) ? '' : ':' . $this->_urlParts['port'];

        $return .= empty($this->_urlParts['path']) ? '' : '/' . ltrim($this->_urlParts['path'], '/');

        $return .= empty($this->_urlParts['query']) ? '' : '?' . $this->_urlParts['query'];

        $return .= empty($this->_urlParts['fragment']) ? '' : '#' . $this->_urlParts['fragment'];

        return $return;
    }
public function returnUrl()
    {
        $return = '';

        $return .= empty($this->_urlParts['scheme']) ? '' : $this->_urlParts['scheme'] . '://';

        $return .= empty($this->_urlParts['user']) ? '' : $this->_urlParts['user'];
        $return .= empty($this->_urlParts['pass']) || empty($this->_urlParts['user']) ? '' : ':' . $this->_urlParts['pass'];

        $return .= empty($this->_urlParts['user']) ? '' : '@';

        $return .= empty($this->_urlParts['host']) ? '' : $this->_urlParts['host'];
        $return .= empty($this->_urlParts['port']) ? '' : ':' . $this->_urlParts['port'];

        $return .= empty($this->_urlParts['path']) ? '' : '/' . ltrim($this->_urlParts['path'], '/');

        $return .= empty($this->_urlParts['query']) ? '' : '?' . $this->_urlParts['query'];

        $return .= empty($this->_urlParts['fragment']) ? '' : '#' . $this->_urlParts['fragment'];

        return $return;
    }
public function returnUrl ( ) { $ return = '' ; $ return .= empty ( $ this -> _urlParts [ 'scheme' ] ) ? '' : $ this -> _urlParts [ 'scheme' ] . '://' ; $ return .= empty ( $ this -> _urlParts [ 'user' ] ) ? '' : $ this -> _urlParts [ 'user' ] ; $ return .= empty ( $ this -> _urlParts [ 'pass' ] ) || empty ( $ this -> _urlParts [ 'user' ] ) ? '' : ':' . $ this -> _urlParts [ 'pass' ] ; $ return .= empty ( $ this -> _urlParts [ 'user' ] ) ? '' : '@' ; $ return .= empty ( $ this -> _urlParts [ 'host' ] ) ? '' : $ this -> _urlParts [ 'host' ] ; $ return .= empty ( $ this -> _urlParts [ 'port' ] ) ? '' : ':' . $ this -> _urlParts [ 'port' ] ; $ return .= empty ( $ this -> _urlParts [ 'path' ] ) ? '' : '/' . ltrim ( $ this -> _urlParts [ 'path' ] , '/' ) ; $ return .= empty ( $ this -> _urlParts [ 'query' ] ) ? '' : '?' . $ this -> _urlParts [ 'query' ] ; $ return .= empty ( $ this -> _urlParts [ 'fragment' ] ) ? '' : '#' . $ this -> _urlParts [ 'fragment' ] ; return $ return ; }
Return complete URL

@return string
Return complete URL