Code Duplication    Length = 5-9 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 679-683 (lines=5) @@
676
            if ($session_data) {
677
                $session_data = preg_replace_callback(
678
                    '!s:(d+):"(.*?)";!',
679
                    function ($match)
680
                    {
681
                        return $match[1] === strlen($match[2])
682
                            ? $match[0]
683
                            : 's:' . strlen($match[2]) . ':"' . $match[2] . '";';
684
                    },
685
                    $session_data
686
                );
@@ 1155-1163 (lines=9) @@
1152
        $error = '<pre>';
1153
        $data2 = preg_replace_callback(
1154
            '!s:(\d+):"(.*?)";!',
1155
            function ($match)
1156
            {
1157
                return ($match[1] === strlen($match[2]))
1158
                    ? $match[0]
1159
                    : 's:'
1160
                      . strlen($match[2])
1161
                      . ':"'
1162
                      . $match[2]
1163
                      . '";';
1164
            },
1165
            $data1
1166
        );