src/View/Helper/UrlComparerTrait.php
protected function _matchHost($url) {
        $components = parse_url($url);
        return !(isset($components['host']) && $components['host'] != $this->_hostname());
    }
protected function _matchHost($url) {
        $components = parse_url($url);
        return !(isset($components['host']) && $components['host'] != $this->_hostname());
    }
protected function _matchHost ( $ url ) { $ components = parse_url ( $ url ) ; return ! ( isset ( $ components [ 'host' ] ) && $ components [ 'host' ] != $ this -> _hostname ( ) ) ; }
Checks if the given URL components match the current host.

@param string $url URL to check.

@return bool `true` if the URL matches, `false` otherwise.
Checks if the given URL components match the current host .