src/Sulu/Component/Webspace/PortalInformation.php
private function getHostLength()
    {
        $hostLength = strpos($this->url, '/');
        $hostLength = (false === $hostLength) ? strlen($this->url) : $hostLength;

        return $hostLength;
    }
private function getHostLength()
    {
        $hostLength = strpos($this->url, '/');
        $hostLength = (false === $hostLength) ? strlen($this->url) : $hostLength;

        return $hostLength;
    }
private function getHostLength ( ) { $ hostLength = strpos ( $ this -> url , '/' ) ; $ hostLength = ( false === $ hostLength ) ? strlen ( $ this -> url ) : $ hostLength ; return $ hostLength ; }
Calculate the length of the host part of the URL.

@return int
Calculate the length of the host part of the URL .