Code Duplication    Length = 5-9 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 612-616 (lines=5) @@
609
            if ($session_data) {
610
                $session_data = preg_replace_callback(
611
                    '!s:(d+):"(.*?)";!',
612
                    function ($match)
613
                    {
614
                        return $match[1] === strlen($match[2])
615
                            ? $match[0]
616
                            : 's:' . strlen($match[2]) . ':"' . $match[2] . '";';
617
                    },
618
                    $session_data
619
                );
@@ 1115-1123 (lines=9) @@
1112
        $error = '<pre>';
1113
        $data2 = preg_replace_callback(
1114
            '!s:(\d+):"(.*?)";!',
1115
            function ($match)
1116
            {
1117
                return ($match[1] === strlen($match[2]))
1118
                    ? $match[0]
1119
                    : 's:'
1120
                      . strlen($match[2])
1121
                      . ':"'
1122
                      . $match[2]
1123
                      . '";';
1124
            },
1125
            $data1
1126
        );