src/Request/LushRequest.php
protected function formatUrl()
    {
        // append trailing slash to the
        // baseUrl if it is missing
        if (! empty($this->payload['base_url']) && substr($this->payload['base_url'], -1) !== '/') {
            $this->payload['base_url'] = $this->payload['base_url'].'/';
        }

        // append the base url
        $this->payload['url'] = trim($this->payload['base_url'].$this->payload['url']);
    }
protected function formatUrl()
    {
        // append trailing slash to the
        // baseUrl if it is missing
        if (! empty($this->payload['base_url']) && substr($this->payload['base_url'], -1) !== '/') {
            $this->payload['base_url'] = $this->payload['base_url'].'/';
        }

        // append the base url
        $this->payload['url'] = trim($this->payload['base_url'].$this->payload['url']);
    }
protected function formatUrl ( ) { // append trailing slash to the // baseUrl if it is missing if ( ! empty ( $ this -> payload [ 'base_url' ] ) && substr ( $ this -> payload [ 'base_url' ] , - 1 ) !== '/' ) { $ this -> payload [ 'base_url' ] = $ this -> payload [ 'base_url' ] . '/' ; } // append the base url $ this -> payload [ 'url' ] = trim ( $ this -> payload [ 'base_url' ] . $ this -> payload [ 'url' ] ) ; }
Format url.
Format url .