protected function buildUrl($path)
    {
        $baseUrl = $this->getOption('base_url');

        //add trailing slash to the url if not supplied in the base_url setting nor supplied in path #6
        $url = $baseUrl . ((substr($baseUrl, -1) == '/' || substr($path, 0, 1) == '/') ? '' : '/') . $path;

        if (strpos($url, '.json') === false) {
            $url .= '.json';
        }

        return $url;
    }
protected function buildUrl($path)
    {
        $baseUrl = $this->getOption('base_url');

        //add trailing slash to the url if not supplied in the base_url setting nor supplied in path #6
        $url = $baseUrl . ((substr($baseUrl, -1) == '/' || substr($path, 0, 1) == '/') ? '' : '/') . $path;

        if (strpos($url, '.json') === false) {
            $url .= '.json';
        }

        return $url;
    }
protected function buildUrl ( $ path ) { $ baseUrl = $ this -> getOption ( 'base_url' ) ; //add trailing slash to the url if not supplied in the base_url setting nor supplied in path #6
 $ url = $ baseUrl . ( ( substr ( $ baseUrl , - 1 ) == '/' || substr ( $ path , 0 , 1 ) == '/' ) ? '' : '/' ) . $ path ; if ( strpos ( $ url , '.json' ) === false ) { $ url .= '.json' ; } return $ url ; }
Prefix url with a base_url if present
@param string $path
@return string
Prefix url with a base_url if present