Code Duplication    Length = 3-3 lines in 2 locations

include/classes/bitcoin.class.php 2 locations

@@ 93-95 (lines=3) @@
90
    $return = self::encodeHex($return);
91
92
    //leading zeros
93
    for ($i = 0; $i < strlen($origbase58) && $origbase58[$i] == "1"; $i++) {
94
      $return = "00" . $return;
95
    }
96
97
    if (strlen($return) % 2 != 0) {
98
      $return = "0" . $return;
@@ 128-130 (lines=3) @@
125
    $return = strrev($return);
126
127
    //leading zeros
128
    for ($i = 0; $i < strlen($orighex) && substr($orighex, $i, 2) == "00"; $i += 2) {
129
      $return = "1" . $return;
130
    }
131
132
    return $return;
133
  }