Code Duplication    Length = 3-3 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 143-145 (lines=3) @@
140
            return $c;
141
        }
142
        // fixstr
143
        if ($c >= 0xa0 && $c <= 0xbf) {
144
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
145
        }
146
        // fixarray
147
        if ($c >= 0x90 && $c <= 0x9f) {
148
            return ($c & 0xf) ? $this->unpackArrayData($c & 0xf) : [];
@@ 309-311 (lines=3) @@
306
        $c = \ord($this->buffer[$this->offset]);
307
        ++$this->offset;
308
309
        if ($c >= 0xa0 && $c <= 0xbf) {
310
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
311
        }
312
        if (0xd9 === $c) {
313
            return $this->unpackStrData($this->unpackUint8());
314
        }