Code Duplication    Length = 4-4 lines in 2 locations

src/WSDL/XML/XMLStyle/XMLDocumentStyle.php 1 location

@@ 126-129 (lines=4) @@
123
            $complexTypeElement->appendChild($sequenceElement);
124
125
            $result[] = $complexTypeElement;
126
            foreach ($node->getElements() as $nodeElement) {
127
                $tmp = $this->generateComplexIfNeeded($DOMDocument, $nodeElement, $sequenceElement, $soapVersion);
128
                $result = array_merge($result, $tmp);
129
            }
130
        }
131
        return $result;
132
    }

src/WSDL/XML/XMLStyle/XMLRpcStyle.php 1 location

@@ 121-124 (lines=4) @@
118
            $complexTypeElement->appendChild($sequenceElement);
119
120
            $result[] = $complexTypeElement;
121
            foreach ($node->getElements() as $nodeElement) {
122
                $tmp = $this->parameterGenerate($DOMDocument, $nodeElement, $sequenceElement, $soapVersion);
123
                $result = array_merge($result, $tmp);
124
            }
125
        }
126
        return $result;
127
    }