Code Duplication    Length = 11-11 lines in 2 locations

src/BufferUnpacker.php 2 locations

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