protected function prepareHost($scheme, $host)
    {
        $host = $this->stripScheme($host);

        if (substr($host, -1) === "/") {
            $host = substr($host, 0, -1);
        }

        return $scheme . $host;
    }
protected function prepareHost($scheme, $host)
    {
        $host = $this->stripScheme($host);

        if (substr($host, -1) === "/") {
            $host = substr($host, 0, -1);
        }

        return $scheme . $host;
    }
protected function prepareHost ( $ scheme , $ host ) { $ host = $ this -> stripScheme ( $ host ) ; if ( substr ( $ host , - 1 ) === "/" ) { $ host = substr ( $ host , 0 , - 1 ) ; } return $ scheme . $ host ; }
Adds given scheme to hostname

@param string $scheme the http scheme
@param string $host   the hostname

@return string
@throws Exceptions\ConfigurationException
Adds given scheme to hostname