Code Duplication    Length = 6-6 lines in 3 locations

admin/gateways/pec24/nusoap.php 3 locations

@@ 3636-3641 (lines=6) @@
3633
3634
        $cookie_param = 'domain=';
3635
        $start        = strpos($cookie_str, $cookie_param);
3636
        if ($start > 0) {
3637
            $domain = substr($cookie_str, $start + strlen($cookie_param));
3638
            $domain = substr($domain, 0, strpos($domain, ';'));
3639
        } else {
3640
            $domain = '';
3641
        }
3642
3643
        $cookie_param = 'expires=';
3644
        $start        = strpos($cookie_str, $cookie_param);
@@ 3645-3650 (lines=6) @@
3642
3643
        $cookie_param = 'expires=';
3644
        $start        = strpos($cookie_str, $cookie_param);
3645
        if ($start > 0) {
3646
            $expires = substr($cookie_str, $start + strlen($cookie_param));
3647
            $expires = substr($expires, 0, strpos($expires, ';'));
3648
        } else {
3649
            $expires = '';
3650
        }
3651
3652
        $cookie_param = 'path=';
3653
        $start        = strpos($cookie_str, $cookie_param);
@@ 3654-3659 (lines=6) @@
3651
3652
        $cookie_param = 'path=';
3653
        $start        = strpos($cookie_str, $cookie_param);
3654
        if ($start > 0) {
3655
            $path = substr($cookie_str, $start + strlen($cookie_param));
3656
            $path = substr($path, 0, strpos($path, ';'));
3657
        } else {
3658
            $path = '/';
3659
        }
3660
3661
        $cookie_param = ';secure;';
3662
        if (strpos($cookie_str, $cookie_param) !== false) {