Code Duplication    Length = 9-9 lines in 2 locations

plugin/sepe/src/wsse/soap-wsa.php 1 location

@@ 95-103 (lines=9) @@
92
        $header->appendChild($nodeTo); 
93
    } 
94
95
    private function createID() { 
96
        $uuid = md5(uniqid(rand(), true)); 
97
        $guid =  'uudi:'.substr($uuid,0,8)."-". 
98
                substr($uuid,8,4)."-". 
99
                substr($uuid,12,4)."-". 
100
                substr($uuid,16,4)."-". 
101
                substr($uuid,20,12); 
102
        return $guid; 
103
    } 
104
105
    public function addMessageID($id=NULL) { 
106
        /* Add the WSA MessageID or return existing ID */ 

plugin/sepe/src/wsse/xmlseclibs.php 1 location

@@ 708-716 (lines=9) @@
705
        return $this->xPathCtx;
706
    }
707
708
    static function generate_GUID($prefix='pfx') {
709
        $uuid = md5(uniqid(rand(), true));
710
        $guid =  $prefix.substr($uuid,0,8)."-".
711
            substr($uuid,8,4)."-".
712
            substr($uuid,12,4)."-".
713
            substr($uuid,16,4)."-".
714
            substr($uuid,20,12);
715
        return $guid;
716
    }
717
718
    public function locateSignature($objDoc) {
719
        if ($objDoc instanceof DOMDocument) {