src/xPDO/Transport/xPDOTransport.php
public static function compareSignature($signature1, $signature2) {
        $value = false;
        $parsed1 = self::parseSignature($signature1);
        $parsed2 = self::parseSignature($signature2);
        if ($parsed1[0] === $parsed2[0]) {
            $value = version_compare($parsed1[1], $parsed2[1]);
        }
        return $value;
    }
public static function compareSignature($signature1, $signature2) {
        $value = false;
        $parsed1 = self::parseSignature($signature1);
        $parsed2 = self::parseSignature($signature2);
        if ($parsed1[0] === $parsed2[0]) {
            $value = version_compare($parsed1[1], $parsed2[1]);
        }
        return $value;
    }
public static function compareSignature ( $ signature1 , $ signature2 ) { $ value = false ; $ parsed1 = self :: parseSignature ( $ signature1 ) ; $ parsed2 = self :: parseSignature ( $ signature2 ) ; if ( $ parsed1 [ 0 ] === $ parsed2 [ 0 ] ) { $ value = version_compare ( $ parsed1 [ 1 ] , $ parsed2 [ 1 ] ) ; } return $ value ; }
Compares two package versions by signature.

@static
@param string $signature1 A package signature.
@param string $signature2 Another package signature to compare.
@return bool|int Returns -1 if the first version is lower than the second, 0 if they
are equal, and 1 if the second is lower if the package names in the provided
signatures are equal; otherwise returns false.
Compares two package versions by signature .