Code Duplication    Length = 12-12 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6138-6149 (lines=12) @@
6135
                    }
6136
                    // NOTE: add error handling here
6137
                    // if serializeType returns false, then catch global error and fault
6138
                    if ($parametersArrayType === 'arraySimple') {
6139
                        $p = array_shift($parameters);
6140
                        $this->debug('calling serializeType w/indexed param');
6141
                        $xml .= $this->serializeType($name, $type, $p, $use, $enc_style);
6142
                    } elseif (isset($parameters[$name])) {
6143
                        $this->debug('calling serializeType w/named param');
6144
                        $xml .= $this->serializeType($name, $type, $parameters[$name], $use, $enc_style);
6145
                    } else {
6146
                        // TODO: only send nillable
6147
                        $this->debug('calling serializeType w/null param');
6148
                        $xml .= $this->serializeType($name, $type, null, $use, $enc_style);
6149
                    }
6150
                }
6151
            } else {
6152
                $this->debug('no parameters passed.');
@@ 6223-6234 (lines=12) @@
6220
                    }
6221
                    // NOTE: add error handling here
6222
                    // if serializeType returns false, then catch global error and fault
6223
                    if ($parametersArrayType === 'arraySimple') {
6224
                        $p = array_shift($parameters);
6225
                        $this->debug('calling serializeType w/indexed param');
6226
                        $xml .= $this->serializeType($name, $type, $p, $use, $enc_style);
6227
                    } elseif (isset($parameters[$name])) {
6228
                        $this->debug('calling serializeType w/named param');
6229
                        $xml .= $this->serializeType($name, $type, $parameters[$name], $use, $enc_style);
6230
                    } else {
6231
                        // TODO: only send nillable
6232
                        $this->debug('calling serializeType w/null param');
6233
                        $xml .= $this->serializeType($name, $type, null, $use, $enc_style);
6234
                    }
6235
                }
6236
            } else {
6237
                $this->debug('no parameters passed.');