Code Duplication    Length = 6-6 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 5778-5783 (lines=6) @@
5775
        $this->debug("in serializeRPCParameters: operation=$operation, direction=$direction, XMLSchemaVersion=$this->XMLSchemaVersion, bindingType=$bindingType");
5776
        $this->appendDebug('parameters=' . $this->varDump($parameters));
5777
5778
        if ($direction != 'input' && $direction != 'output') {
5779
            $this->debug('The value of the \$direction argument needs to be either "input" or "output"');
5780
            $this->setError('The value of the \$direction argument needs to be either "input" or "output"');
5781
5782
            return false;
5783
        }
5784
        if (!$opData = $this->getOperationData($operation, $bindingType)) {
5785
            $this->debug('Unable to retrieve WSDL data for operation: ' . $operation . ' bindingType: ' . $bindingType);
5786
            $this->setError('Unable to retrieve WSDL data for operation: ' . $operation . ' bindingType: ' . $bindingType);
@@ 5883-5888 (lines=6) @@
5880
        $this->debug("in serializeParameters: operation=$operation, direction=$direction, XMLSchemaVersion=$this->XMLSchemaVersion");
5881
        $this->appendDebug('parameters=' . $this->varDump($parameters));
5882
5883
        if ($direction != 'input' && $direction != 'output') {
5884
            $this->debug('The value of the \$direction argument needs to be either "input" or "output"');
5885
            $this->setError('The value of the \$direction argument needs to be either "input" or "output"');
5886
5887
            return false;
5888
        }
5889
        if (!$opData = $this->getOperationData($operation)) {
5890
            $this->debug('Unable to retrieve WSDL data for operation: ' . $operation);
5891
            $this->setError('Unable to retrieve WSDL data for operation: ' . $operation);