Code Duplication    Length = 3-3 lines in 2 locations

src/Json5Decoder.php 2 locations

@@ 275-277 (lines=3) @@
272
273
        switch ($base) {
274
            case 10:
275
                if ((is_numeric($this->ch) || $this->ch === '.') && ($match = $this->match('/^\d*\.?\d*/')) !== null) {
276
                    $string .= $match;
277
                }
278
                if (($this->ch === 'E' || $this->ch === 'e') && ($match = $this->match('/^[Ee][-+]?\d*/')) !== null) {
279
                    $string .= $match;
280
                }
@@ 278-280 (lines=3) @@
275
                if ((is_numeric($this->ch) || $this->ch === '.') && ($match = $this->match('/^\d*\.?\d*/')) !== null) {
276
                    $string .= $match;
277
                }
278
                if (($this->ch === 'E' || $this->ch === 'e') && ($match = $this->match('/^[Ee][-+]?\d*/')) !== null) {
279
                    $string .= $match;
280
                }
281
                $number = $string;
282
                break;
283
            case 16: