Code Duplication    Length = 7-7 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6129-6135 (lines=7) @@
6126
                foreach ($parts as $name => $type) {
6127
                    $this->debug("serializing part $name of type $type");
6128
                    // Track encoding style
6129
                    if (isset($opData[$direction]['encodingStyle'])
6130
                        && $encodingStyle != $opData[$direction]['encodingStyle']) {
6131
                        $encodingStyle = $opData[$direction]['encodingStyle'];
6132
                        $enc_style     = $encodingStyle;
6133
                    } else {
6134
                        $enc_style = false;
6135
                    }
6136
                    // NOTE: add error handling here
6137
                    // if serializeType returns false, then catch global error and fault
6138
                    if ($parametersArrayType === 'arraySimple') {
@@ 6214-6220 (lines=7) @@
6211
                foreach ($opData[$direction]['parts'] as $name => $type) {
6212
                    $this->debug('serializing part "' . $name . '" of type "' . $type . '"');
6213
                    // Track encoding style
6214
                    if (isset($opData[$direction]['encodingStyle'])
6215
                        && $encodingStyle != $opData[$direction]['encodingStyle']) {
6216
                        $encodingStyle = $opData[$direction]['encodingStyle'];
6217
                        $enc_style     = $encodingStyle;
6218
                    } else {
6219
                        $enc_style = false;
6220
                    }
6221
                    // NOTE: add error handling here
6222
                    // if serializeType returns false, then catch global error and fault
6223
                    if ($parametersArrayType === 'arraySimple') {