Code Duplication    Length = 13-13 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6597-6609 (lines=13) @@
6594
    {
6595
        $this->debug("serializeComplexTypeAttributes for XML Schema type $ns:$uqType");
6596
        $xml = '';
6597
        if (isset($typeDef['extensionBase'])) {
6598
            $nsx     = $this->getPrefix($typeDef['extensionBase']);
6599
            $uqTypex = $this->getLocalPart($typeDef['extensionBase']);
6600
            if ($this->getNamespaceFromPrefix($nsx)) {
6601
                $nsx = $this->getNamespaceFromPrefix($nsx);
6602
            }
6603
            if ($typeDefx = $this->getTypeDef($uqTypex, $nsx)) {
6604
                $this->debug("serialize attributes for extension base $nsx:$uqTypex");
6605
                $xml .= $this->serializeComplexTypeAttributes($typeDefx, $value, $nsx, $uqTypex);
6606
            } else {
6607
                $this->debug("extension base $nsx:$uqTypex is not a supported type");
6608
            }
6609
        }
6610
        if (isset($typeDef['attrs']) && is_array($typeDef['attrs'])) {
6611
            $this->debug("serialize attributes for XML Schema type $ns:$uqType");
6612
            if (is_array($value)) {
@@ 6668-6680 (lines=13) @@
6665
    {
6666
        $this->debug("in serializeComplexTypeElements for XML Schema type $ns:$uqType");
6667
        $xml = '';
6668
        if (isset($typeDef['extensionBase'])) {
6669
            $nsx     = $this->getPrefix($typeDef['extensionBase']);
6670
            $uqTypex = $this->getLocalPart($typeDef['extensionBase']);
6671
            if ($this->getNamespaceFromPrefix($nsx)) {
6672
                $nsx = $this->getNamespaceFromPrefix($nsx);
6673
            }
6674
            if ($typeDefx = $this->getTypeDef($uqTypex, $nsx)) {
6675
                $this->debug("serialize elements for extension base $nsx:$uqTypex");
6676
                $xml .= $this->serializeComplexTypeElements($typeDefx, $value, $nsx, $uqTypex, $use, $encodingStyle);
6677
            } else {
6678
                $this->debug("extension base $nsx:$uqTypex is not a supported type");
6679
            }
6680
        }
6681
        if (isset($typeDef['elements']) && is_array($typeDef['elements'])) {
6682
            $this->debug("in serializeComplexTypeElements, serialize elements for XML Schema type $ns:$uqType");
6683
            if (is_array($value)) {