Code Duplication    Length = 5-9 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 635-639 (lines=5) @@
632
            if ($session_data) {
633
                $session_data = preg_replace_callback(
634
                    '!s:(d+):"(.*?)";!',
635
                    function ($match)
636
                    {
637
                        return $match[1] === strlen($match[2])
638
                            ? $match[0]
639
                            : 's:' . strlen($match[2]) . ':"' . $match[2] . '";';
640
                    },
641
                    $session_data
642
                );
@@ 1122-1130 (lines=9) @@
1119
        $error = '<pre>';
1120
        $data2 = preg_replace_callback(
1121
            '!s:(\d+):"(.*?)";!',
1122
            function ($match)
1123
            {
1124
                return ($match[1] === strlen($match[2]))
1125
                    ? $match[0]
1126
                    : 's:'
1127
                      . strlen($match[2])
1128
                      . ':"'
1129
                      . $match[2]
1130
                      . '";';
1131
            },
1132
            $data1
1133
        );