protected function stripPort($domain)
    {
        if ($domainStripped = \preg_replace(self::PATTERN_STRIP_PROTOCOL, null, $domain)) {
            return $domainStripped;
        }

        return $domain;
    }
protected function stripPort($domain)
    {
        if ($domainStripped = \preg_replace(self::PATTERN_STRIP_PROTOCOL, null, $domain)) {
            return $domainStripped;
        }

        return $domain;
    }
protected function stripPort ( $ domain ) { if ( $ domainStripped = \ preg_replace ( self :: PATTERN_STRIP_PROTOCOL , null , $ domain ) ) { return $ domainStripped ; } return $ domain ; }
Strip the port from a domain.

@param $domain

@return mixed
Strip the port from a domain .