Code Duplication    Length = 11-11 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 1774-1784 (lines=11) @@
1771
        $schemaPrefix = $this->getPrefixFromNamespace($this->XMLSchemaVersion);
1772
        $xml          = '';
1773
        // imports
1774
        if (count($this->imports) > 0) {
1775
            foreach ($this->imports as $ns => $list) {
1776
                foreach ($list as $ii) {
1777
                    if ($ii['location'] != '') {
1778
                        $xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\">\n";
1779
                    } else {
1780
                        $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\">\n";
1781
                    }
1782
                }
1783
            }
1784
        }
1785
        // complex types
1786
        foreach ($this->complexTypes as $typeName => $attrs) {
1787
            $contentStr = '';
@@ 5854-5864 (lines=11) @@
5851
        }
5852
        $xml .= '>';
5853
        // imports
5854
        if (count($this->import) > 0) {
5855
            foreach ($this->import as $ns => $list) {
5856
                foreach ($list as $ii) {
5857
                    if ($ii['location'] != '') {
5858
                        $xml .= '<import location="' . $ii['location'] . '" namespace="' . $ns . '">';
5859
                    } else {
5860
                        $xml .= '<import namespace="' . $ns . '">';
5861
                    }
5862
                }
5863
            }
5864
        }
5865
        // types
5866
        if (count($this->schemas) >= 1) {
5867
            $xml .= "\n<types>\n";