Code Duplication    Length = 6-6 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6113-6118 (lines=6) @@
6110
                foreach ($parts as $name => $type) {
6111
                    $this->debug("serializing part $name of type $type");
6112
                    // Track encoding style
6113
                    if (isset($opData[$direction]['encodingStyle'])
6114
                        && $encodingStyle != $opData[$direction]['encodingStyle']
6115
                    ) {
6116
                        $encodingStyle = $opData[$direction]['encodingStyle'];
6117
                        $enc_style     = $encodingStyle;
6118
                    } else {
6119
                        $enc_style = false;
6120
                    }
6121
                    // NOTE: add error handling here
@@ 6200-6205 (lines=6) @@
6197
                foreach ($opData[$direction]['parts'] as $name => $type) {
6198
                    $this->debug('serializing part "' . $name . '" of type "' . $type . '"');
6199
                    // Track encoding style
6200
                    if (isset($opData[$direction]['encodingStyle'])
6201
                        && $encodingStyle != $opData[$direction]['encodingStyle']
6202
                    ) {
6203
                        $encodingStyle = $opData[$direction]['encodingStyle'];
6204
                        $enc_style     = $encodingStyle;
6205
                    } else {
6206
                        $enc_style = false;
6207
                    }
6208
                    // NOTE: add error handling here