Fix for failing unit test

This commit is contained in:
Rich Morgan 2014-09-23 16:14:05 -04:00
parent c2abab8b4f
commit de08ffc831

View File

@ -61,13 +61,7 @@ class Fingerprint
}
if (function_exists('php_uname')) {
self::$sigData[] = php_uname('s') .
php_uname('n') .
php_uname('m') .
PHP_OS .
PHP_SAPI .
ICONV_IMPL .
ICONV_VERSION;
self::$sigData[] = php_uname('s') . php_uname('n') . php_uname('m') . PHP_OS . PHP_SAPI . ICONV_IMPL . ICONV_VERSION;
}
if (function_exists('sha1_file')) {
@ -81,16 +75,10 @@ class Fingerprint
}
if (function_exists('sha1')) {
self::$finHash = sha1(str_ireplace(' ', '', self::$finHash) .
strlen(self::$finHash) .
metaphone(self::$finHash));
self::$finHash = sha1(str_ireplace(' ', '', self::$finHash) . strlen(self::$finHash) . metaphone(self::$finHash));
return sha1(self::$finHash);
} else {
self::$finHash = md5(str_ireplace(' ', '', self::$finHash) .
strlen(self::$finHash) .
metaphone(self::$finHash));
self::$finHash = md5(str_ireplace(' ', '', self::$finHash) . strlen(self::$finHash) . metaphone(self::$finHash));
return md5(self::$finHash);
}
}