Code Duplication    Length = 6-6 lines in 2 locations

src/Shorty.php 2 locations

@@ 92-97 (lines=6) @@
89
                $out   = $out + strpos($index, substr($in, $t, 1)) * $bcpow;
90
            }
91
92
            if (is_numeric($pad_up)) {
93
                $pad_up--;
94
                if ($pad_up > 0) {
95
                    $out -= pow($base, $pad_up);
96
                }
97
            }
98
            $out = sprintf('%F', $out);
99
            $out = substr($out, 0, strpos($out, '.'));
100
        } else {
@@ 102-107 (lines=6) @@
99
            $out = substr($out, 0, strpos($out, '.'));
100
        } else {
101
            // Digital number  -->>  alphabet letter code
102
            if (is_numeric($pad_up)) {
103
                $pad_up--;
104
                if ($pad_up > 0) {
105
                    $in += pow($base, $pad_up);
106
                }
107
            }
108
109
            $out = "";
110
            for ($t = floor(log($in, $base)); $t >= 0; $t--) {