Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

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