Code Duplication    Length = 5-6 lines in 2 locations

plugin/sepe/src/wsse/soap-wsse.php 2 locations

@@ 220-225 (lines=6) @@
217
            }
218
        }
219
220
        foreach ($this->envelope->childNodes AS $node) {
221
            if ($node->namespaceURI == $this->soapNS && $node->localName == 'Body') {
222
                $arNodes[] = $node;
223
                break;
224
            }
225
        }
226
227
        $algorithm = XMLSecurityDSig::SHA1;
228
        if (is_array($options) && isset($options["algorithm"])) {
@@ 369-373 (lines=5) @@
366
367
        $enc = new XMLSecEnc();
368
        $node = false;
369
        foreach ($this->envelope->childNodes AS $node) {
370
            if ($node->namespaceURI == $this->soapNS && $node->localName == 'Body') {
371
                break;
372
            }
373
        }
374
        $enc->setNode($node);
375
        /* encrypt the symmetric key */
376
        $enc->encryptKey($siteKey, $objKey, FALSE);