Code Duplication    Length = 11-11 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 254-264 (lines=11) @@
251
        return $hi << 8 | $lo;
252
    }
253
254
    private function unpackUint32()
255
    {
256
        $this->ensureLength(4);
257
258
        $num = \substr($this->buffer, $this->offset, 4);
259
        $this->offset += 4;
260
261
        $num = \unpack('N', $num);
262
263
        return $num[1];
264
    }
265
266
    private function unpackUint64()
267
    {
@@ 326-336 (lines=11) @@
323
        return $num[1];
324
    }
325
326
    private function unpackInt64()
327
    {
328
        $this->ensureLength(8);
329
330
        $num = \substr($this->buffer, $this->offset, 8);
331
        $this->offset += 8;
332
333
        $set = \unpack('N2', $num);
334
335
        return $set[1] << 32 | $set[2];
336
    }
337
338
    private function unpackFloat32()
339
    {