Code Duplication    Length = 11-11 lines in 2 locations

src/Fwlib/Util/Common/NumberUtil.php 2 locations

@@ 185-195 (lines=11) @@
182
            }
183
        }
184
185
        if (10 == $toBase) {
186
            return $base10;
187
        } else {
188
            $baseN = '';
189
            while (0 < bccomp($base10, '0', 0)) {
190
                $r = intval(bcmod($base10, $toBase));
191
                $baseN = $this->baseConvertMap[$r] . $baseN;
192
                $base10 = bcdiv($base10, $toBase, 0);
193
            }
194
            return $baseN;
195
        }
196
197
        // @codeCoverageIgnoreEnd
198
    }
@@ 225-235 (lines=11) @@
222
            }
223
        }
224
225
        if (10 == $toBase) {
226
            return gmp_strval($base10);
227
        } else {
228
            $baseN = '';
229
            while (0 < gmp_cmp($base10, '0')) {
230
                list($base10, $r) = gmp_div_qr($base10, "$toBase");
231
                $r = intval(gmp_strval($r));
232
                $baseN = $this->baseConvertMap[$r] . $baseN;
233
            }
234
            return $baseN;
235
        }
236
237
        // @codeCoverageIgnoreEnd
238
    }