From de08ffc8314c40907f68b30d73e7205f2bd9ccff Mon Sep 17 00:00:00 2001 From: Rich Morgan Date: Tue, 23 Sep 2014 16:14:05 -0400 Subject: [PATCH] Fix for failing unit test --- src/Bitpay/Util/Fingerprint.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Bitpay/Util/Fingerprint.php b/src/Bitpay/Util/Fingerprint.php index 7893cd0..919da0d 100644 --- a/src/Bitpay/Util/Fingerprint.php +++ b/src/Bitpay/Util/Fingerprint.php @@ -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); } }