Code Duplication    Length = 11-11 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 1766-1776 (lines=11) @@
1763
        $schemaPrefix = $this->getPrefixFromNamespace($this->XMLSchemaVersion);
1764
        $xml          = '';
1765
        // imports
1766
        if (count($this->imports) > 0) {
1767
            foreach ($this->imports as $ns => $list) {
1768
                foreach ($list as $ii) {
1769
                    if ($ii['location'] != '') {
1770
                        $xml .= " <$schemaPrefix:import location=\"" . $ii['location'] . '" namespace="' . $ns . "\" />\n";
1771
                    } else {
1772
                        $xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" />\n";
1773
                    }
1774
                }
1775
            }
1776
        }
1777
        // complex types
1778
        foreach ($this->complexTypes as $typeName => $attrs) {
1779
            $contentStr = '';
@@ 5836-5846 (lines=11) @@
5833
        }
5834
        $xml .= '>';
5835
        // imports
5836
        if (count($this->import) > 0) {
5837
            foreach ($this->import as $ns => $list) {
5838
                foreach ($list as $ii) {
5839
                    if ($ii['location'] != '') {
5840
                        $xml .= '<import location="' . $ii['location'] . '" namespace="' . $ns . '" />';
5841
                    } else {
5842
                        $xml .= '<import namespace="' . $ns . '" />';
5843
                    }
5844
                }
5845
            }
5846
        }
5847
        // types
5848
        if (count($this->schemas) >= 1) {
5849
            $xml .= "\n<types>\n";