Code Duplication    Length = 6-6 lines in 3 locations

admin/gateways/pec24/nusoap.php 3 locations

@@ 3613-3618 (lines=6) @@
3610
3611
        $cookie_param = 'domain=';
3612
        $start        = strpos($cookie_str, $cookie_param);
3613
        if ($start > 0) {
3614
            $domain = substr($cookie_str, $start + strlen($cookie_param));
3615
            $domain = substr($domain, 0, strpos($domain, ';'));
3616
        } else {
3617
            $domain = '';
3618
        }
3619
3620
        $cookie_param = 'expires=';
3621
        $start        = strpos($cookie_str, $cookie_param);
@@ 3622-3627 (lines=6) @@
3619
3620
        $cookie_param = 'expires=';
3621
        $start        = strpos($cookie_str, $cookie_param);
3622
        if ($start > 0) {
3623
            $expires = substr($cookie_str, $start + strlen($cookie_param));
3624
            $expires = substr($expires, 0, strpos($expires, ';'));
3625
        } else {
3626
            $expires = '';
3627
        }
3628
3629
        $cookie_param = 'path=';
3630
        $start        = strpos($cookie_str, $cookie_param);
@@ 3631-3636 (lines=6) @@
3628
3629
        $cookie_param = 'path=';
3630
        $start        = strpos($cookie_str, $cookie_param);
3631
        if ($start > 0) {
3632
            $path = substr($cookie_str, $start + strlen($cookie_param));
3633
            $path = substr($path, 0, strpos($path, ';'));
3634
        } else {
3635
            $path = '/';
3636
        }
3637
3638
        $cookie_param = ';secure;';
3639
        if (strpos($cookie_str, $cookie_param) !== false) {