Code Duplication    Length = 6-6 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6071-6076 (lines=6) @@
6068
        $this->debug("in serializeRPCParameters: operation=$operation, direction=$direction, XMLSchemaVersion=$this->XMLSchemaVersion, bindingType=$bindingType");
6069
        $this->appendDebug('parameters=' . $this->varDump($parameters));
6070
6071
        if ($direction !== 'input' && $direction !== 'output') {
6072
            $this->debug('The value of the \$direction argument needs to be either "input" or "output"');
6073
            $this->setError('The value of the \$direction argument needs to be either "input" or "output"');
6074
6075
            return false;
6076
        }
6077
        if (!$opData = $this->getOperationData($operation, $bindingType)) {
6078
            $this->debug('Unable to retrieve WSDL data for operation: ' . $operation . ' bindingType: ' . $bindingType);
6079
            $this->setError('Unable to retrieve WSDL data for operation: ' . $operation . ' bindingType: ' . $bindingType);
@@ 6179-6184 (lines=6) @@
6176
        $this->debug("in serializeParameters: operation=$operation, direction=$direction, XMLSchemaVersion=$this->XMLSchemaVersion");
6177
        $this->appendDebug('parameters=' . $this->varDump($parameters));
6178
6179
        if ($direction !== 'input' && $direction !== 'output') {
6180
            $this->debug('The value of the \$direction argument needs to be either "input" or "output"');
6181
            $this->setError('The value of the \$direction argument needs to be either "input" or "output"');
6182
6183
            return false;
6184
        }
6185
        if (!$opData = $this->getOperationData($operation)) {
6186
            $this->debug('Unable to retrieve WSDL data for operation: ' . $operation);
6187
            $this->setError('Unable to retrieve WSDL data for operation: ' . $operation);