Code Duplication    Length = 12-12 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6910-6921 (lines=12) @@
6907
        );
6908
        // add portTypes
6909
        // add messages
6910
        if ($in) {
6911
            foreach ($in as $pName => $pType) {
6912
                if (strpos($pType, ':')) {
6913
                    $pType = $this->getNamespaceFromPrefix($this->getPrefix($pType)) . ':' . $this->getLocalPart($pType);
6914
                }
6915
                $this->messages[$name . 'Request'][$pName] = $pType;
6916
            }
6917
        } else {
6918
            $this->messages[$name . 'Request'] = '0';
6919
        }
6920
        if ($out) {
6921
            foreach ($out as $pName => $pType) {
6922
                if (strpos($pType, ':')) {
6923
                    $pType = $this->getNamespaceFromPrefix($this->getPrefix($pType)) . ':' . $this->getLocalPart($pType);
6924
                }
@@ 6920-6931 (lines=12) @@
6917
        } else {
6918
            $this->messages[$name . 'Request'] = '0';
6919
        }
6920
        if ($out) {
6921
            foreach ($out as $pName => $pType) {
6922
                if (strpos($pType, ':')) {
6923
                    $pType = $this->getNamespaceFromPrefix($this->getPrefix($pType)) . ':' . $this->getLocalPart($pType);
6924
                }
6925
                $this->messages[$name . 'Response'][$pName] = $pType;
6926
            }
6927
        } else {
6928
            $this->messages[$name . 'Response'] = '0';
6929
        }
6930
6931
        return true;
6932
    }
6933
}
6934