Code Duplication    Length = 3-3 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 179-181 (lines=3) @@
176
            return $c;
177
        }
178
        // fixstr
179
        if ($c >= 0xa0 && $c <= 0xbf) {
180
            return ($c & 0x1f) ? $this->read($c & 0x1f) : '';
181
        }
182
        // negfixint
183
        if ($c >= 0xe0) {
184
            return $c - 0x100;
@@ 373-375 (lines=3) @@
370
        $c = \ord($this->buffer[$this->offset]);
371
        ++$this->offset;
372
373
        if ($c >= 0xa0 && $c <= 0xbf) {
374
            return ($c & 0x1f) ? $this->read($c & 0x1f) : '';
375
        }
376
        if (0xd9 === $c) {
377
            return $this->read($this->unpackUint8());
378
        }