Code Duplication    Length = 3-3 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 131-133 (lines=3) @@
128
            return $c;
129
        }
130
        // fixstr
131
        if ($c >= 0xa0 && $c <= 0xbf) {
132
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
133
        }
134
        // fixarray
135
        if ($c >= 0x90 && $c <= 0x9f) {
136
            return ($c & 0xf) ? $this->unpackArrayData($c & 0xf) : [];
@@ 291-293 (lines=3) @@
288
289
        $c = \ord($this->buffer[$this->offset++]);
290
291
        if ($c >= 0xa0 && $c <= 0xbf) {
292
            return ($c & 0x1f) ? $this->unpackStrData($c & 0x1f) : '';
293
        }
294
        if (0xd9 === $c) {
295
            return $this->unpackStrData($this->unpackUint8());
296
        }