Code Duplication    Length = 11-11 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 245-255 (lines=11) @@
242
        return $num[1];
243
    }
244
245
    private function unpackU16()
246
    {
247
        $this->ensureLength(2);
248
249
        $num = $this->buffer[$this->offset].$this->buffer[$this->offset + 1];
250
        $this->offset += 2;
251
252
        $num = \unpack('n', $num);
253
254
        return $num[1];
255
    }
256
257
    private function unpackU32()
258
    {
@@ 300-310 (lines=11) @@
297
        return $num[1];
298
    }
299
300
    private function unpackI16()
301
    {
302
        $this->ensureLength(2);
303
304
        $num = $this->buffer[$this->offset].$this->buffer[$this->offset + 1];
305
        $this->offset += 2;
306
307
        $num = \unpack('s', \strrev($num));
308
309
        return $num[1];
310
    }
311
312
    private function unpackI32()
313
    {