Code Duplication    Length = 8-8 lines in 2 locations

src/Currency.php 2 locations

@@ 72-79 (lines=8) @@
69
     *
70
     * @return int
71
     */
72
    public static function getDivisionOffset($code)
73
    {
74
        return [
75
            self::JPY => 1,
76
            self::SGD => 100,
77
            self::THB => 100,
78
        ][strtolower($code)];
79
    }
80
81
    /**
82
     * @param string $code
@@ 86-93 (lines=8) @@
83
     *
84
     * @return int
85
     */
86
    public static function getSymblo($code)
87
    {
88
        return [
89
            self::JPY => '¥',
90
            self::SGD => '$',
91
            self::THB => '฿',
92
        ][strtolower($code)];
93
    }
94
95
    /**
96
     * @param int $amount