Classes/Page/Part/MetatagPart.php
protected function getProtocolLength($url)
    {
        if (substr_compare($url, 'http://', 0, 7, true) === 0) {
            return 7;
        }
        if (substr_compare($url, 'https://', 0, 8, true) === 0) {
            return 8;
        }
        if (substr_compare($url, '//', 0, 2, false) === 0) {
            return 2;
        }

        return null;
    }
protected function getProtocolLength($url)
    {
        if (substr_compare($url, 'http://', 0, 7, true) === 0) {
            return 7;
        }
        if (substr_compare($url, 'https://', 0, 8, true) === 0) {
            return 8;
        }
        if (substr_compare($url, '//', 0, 2, false) === 0) {
            return 2;
        }

        return null;
    }
protected function getProtocolLength ( $ url ) { if ( substr_compare ( $ url , 'http://' , 0 , 7 , true ) === 0 ) { return 7 ; } if ( substr_compare ( $ url , 'https://' , 0 , 8 , true ) === 0 ) { return 8 ; } if ( substr_compare ( $ url , '//' , 0 , 2 , false ) === 0 ) { return 2 ; } return null ; }
Case-insensitive detection of the protocol used in an Url. Returns protocol length if found.

@param $url

@return int|null length of protocol or null for unknown protocol
Case - insensitive detection of the protocol used in an Url . Returns protocol length if found .