Code Duplication    Length = 3-3 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 115-117 (lines=3) @@
112
            return $c;
113
        }
114
        // fixstr
115
        if ($c >= 0xa0 && $c <= 0xbf) {
116
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
117
        }
118
        // fixarray
119
        if ($c >= 0x90 && $c <= 0x9f) {
120
            return ($c & 0xf) ? $this->unpackArrayData($c & 0xf) : [];
@@ 281-283 (lines=3) @@
278
        $c = \ord($this->buffer[$this->offset]);
279
        ++$this->offset;
280
281
        if ($c >= 0xa0 && $c <= 0xbf) {
282
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
283
        }
284
        if (0xd9 === $c) {
285
            return $this->unpackStrData($this->unpackUint8());
286
        }