Code Duplication    Length = 12-12 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 5842-5853 (lines=12) @@
5839
                    }
5840
                    // NOTE: add error handling here
5841
                    // if serializeType returns false, then catch global error and fault
5842
                    if ($parametersArrayType == 'arraySimple') {
5843
                        $p = array_shift($parameters);
5844
                        $this->debug('calling serializeType w/indexed param');
5845
                        $xml .= $this->serializeType($name, $type, $p, $use, $enc_style);
5846
                    } elseif (isset($parameters[$name])) {
5847
                        $this->debug('calling serializeType w/named param');
5848
                        $xml .= $this->serializeType($name, $type, $parameters[$name], $use, $enc_style);
5849
                    } else {
5850
                        // TODO: only send nillable
5851
                        $this->debug('calling serializeType w/null param');
5852
                        $xml .= $this->serializeType($name, $type, null, $use, $enc_style);
5853
                    }
5854
                }
5855
            } else {
5856
                $this->debug('no parameters passed.');
@@ 5926-5937 (lines=12) @@
5923
                    }
5924
                    // NOTE: add error handling here
5925
                    // if serializeType returns false, then catch global error and fault
5926
                    if ($parametersArrayType == 'arraySimple') {
5927
                        $p = array_shift($parameters);
5928
                        $this->debug('calling serializeType w/indexed param');
5929
                        $xml .= $this->serializeType($name, $type, $p, $use, $enc_style);
5930
                    } elseif (isset($parameters[$name])) {
5931
                        $this->debug('calling serializeType w/named param');
5932
                        $xml .= $this->serializeType($name, $type, $parameters[$name], $use, $enc_style);
5933
                    } else {
5934
                        // TODO: only send nillable
5935
                        $this->debug('calling serializeType w/null param');
5936
                        $xml .= $this->serializeType($name, $type, null, $use, $enc_style);
5937
                    }
5938
                }
5939
            } else {
5940
                $this->debug('no parameters passed.');