Code Duplication    Length = 3-3 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 159-161 (lines=3) @@
156
            return $c;
157
        }
158
        // fixstr
159
        if ($c >= 0xa0 && $c <= 0xbf) {
160
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
161
        }
162
        // negfixint
163
        if ($c >= 0xe0) {
164
            return $c - 0x100;
@@ 353-355 (lines=3) @@
350
        $c = \ord($this->buffer[$this->offset]);
351
        ++$this->offset;
352
353
        if ($c >= 0xa0 && $c <= 0xbf) {
354
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
355
        }
356
        if (0xd9 === $c) {
357
            return $this->unpackStrData($this->unpackUint8());
358
        }