Code Duplication    Length = 11-11 lines in 2 locations

src/BufferUnpacker.php 2 locations

@@ 234-244 (lines=11) @@
231
        return $num[1];
232
    }
233
234
    private function unpackU32()
235
    {
236
        $this->ensureLength(4);
237
238
        $num = substr($this->buffer, $this->offset, 4);
239
        $this->offset += 4;
240
241
        $num = unpack('N', $num);
242
243
        return $num[1];
244
    }
245
246
    private function unpackU64()
247
    {
@@ 301-311 (lines=11) @@
298
        return $num[1];
299
    }
300
301
    private function unpackI64()
302
    {
303
        $this->ensureLength(8);
304
305
        $num = substr($this->buffer, $this->offset, 8);
306
        $this->offset += 8;
307
308
        $set = unpack('N2', $num);
309
310
        return $set[1] << 32 | $set[2];
311
    }
312
313
    private function unpackFloat()
314
    {