Code Duplication    Length = 4-4 lines in 2 locations

src/MySQLReplication/BinLog/BinLogServerInfo.php 2 locations

@@ 48-51 (lines=4) @@
45
        //auth_plugin_data_part_1
46
        //[len=8] first 8 bytes of the auth-plugin data
47
        self::$serverInfo['salt'] = '';
48
        for ($j = $i; $j < $i + 8; $j++) {
49
            self::$serverInfo['salt'] .= $data[$j];
50
        }
51
        $i += 8;
52
53
        //filler_1 (1) -- 0x00
54
        $i++;
@@ 79-82 (lines=4) @@
76
77
        //next salt
78
        if ($length >= $i + $salt_len) {
79
            for ($j = $i; $j < $i + $salt_len; $j++) {
80
                self::$serverInfo['salt'] .= $data[$j];
81
            }
82
83
        }
84
        self::$serverInfo['auth_plugin_name'] = '';
85
        $i += $salt_len + 1;