Code Duplication    Length = 7-7 lines in 2 locations

src/MySQLReplication/BinaryDataReader/BinaryDataReader.php 2 locations

@@ 263-269 (lines=7) @@
260
    /**
261
     * @return mixed
262
     */
263
    public function readUInt40()
264
    {
265
        $data1 = unpack('C', $this->read(self::UNSIGNED_CHAR_LENGTH))[1];
266
        $data2 = unpack('I', $this->read(self::UNSIGNED_INT32_LENGTH))[1];
267
268
        return $data1 + ($data2 << 8);
269
    }
270
271
    /**
272
     * @return mixed
@@ 368-374 (lines=7) @@
365
    /**
366
     * @return int
367
     */
368
    public function readInt40Be()
369
    {
370
        $data1 = unpack('N', $this->read(self::UNSIGNED_INT32_LENGTH))[1];
371
        $data2 = unpack('C', $this->read(self::UNSIGNED_CHAR_LENGTH))[1];
372
373
        return $data2 + ($data1 << 8);
374
    }
375
376
    /**
377
     * @return int