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
        // negfixint
147
        if ($c >= 0xe0) {
148
            return $c - 0x100;
@@ 337-339 (lines=3) @@
334
        $c = \ord($this->buffer[$this->offset]);
335
        ++$this->offset;
336
337
        if ($c >= 0xa0 && $c <= 0xbf) {
338
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
339
        }
340
        if (0xd9 === $c) {
341
            return $this->unpackStrData($this->unpackUint8());
342
        }