Code Duplication    Length = 8-8 lines in 2 locations

src/Dictionary.php 2 locations

@@ 142-149 (lines=8) @@
139
    /**
140
     * {@inheritdoc}
141
     */
142
    public function getTripletUnit(int $unit): string
143
    {
144
        if (! isset(static::$tripletUnits[$unit])) {
145
            throw new InvalidArgumentException(sprintf('Unit arg (`%s`) must be in 0-9 range!', $unit));
146
        }
147
148
        return static::$tripletUnits[$unit];
149
    }
150
151
    /**
152
     * {@inheritdoc}
@@ 166-173 (lines=8) @@
163
    /**
164
     * {@inheritdoc}
165
     */
166
    public function getTripletHundred(int $hundred): string
167
    {
168
        if (! isset(static::$tripletUnits[$hundred])) {
169
            throw new InvalidArgumentException(sprintf('Hundred arg (`%s`) must be in 0-9 range!', $hundred));
170
        }
171
172
        return static::$tripletUnits[$hundred].$this->separator().static::$hundred;
173
    }
174
175
    /**
176
     * {@inheritdoc}