code/libraries/joomlatools/library/http/url/url.php
public function equals(KHttpUrlInterface $url)
    {
        $parts = array('scheme', 'host', 'port', 'path', 'query', 'fragment');

        foreach($parts as $part)
        {
            if($this->{$part} != $url->{$part}) {
                return false;
            }
        }

        return true;
    }
public function equals(KHttpUrlInterface $url)
    {
        $parts = array('scheme', 'host', 'port', 'path', 'query', 'fragment');

        foreach($parts as $part)
        {
            if($this->{$part} != $url->{$part}) {
                return false;
            }
        }

        return true;
    }
public function equals ( KHttpUrlInterface $ url ) { $ parts = array ( 'scheme' , 'host' , 'port' , 'path' , 'query' , 'fragment' ) ; foreach ( $ parts as $ part ) { if ( $ this -> { $ part } != $ url -> { $ part } ) { return false ; } } return true ; }
Check if two url's are equal

@param KHttpUrlInterface $url
@return Boolean
Check if two url s are equal