Code Duplication    Length = 5-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 5907-5911 (lines=5) @@
5904
                foreach ($attrs['operations'] as $opName => $opParts) {
5905
                    $binding_xml .= "\n" . '  <operation name="' . $opName . '">';
5906
                    $binding_xml .= "\n" . '    <soap:operation soapAction="' . $opParts['soapAction'] . '" style="' . $opParts['style'] . '"/>';
5907
                    if (isset($opParts['input']['encodingStyle']) && $opParts['input']['encodingStyle'] != '') {
5908
                        $enc_style = ' encodingStyle="' . $opParts['input']['encodingStyle'] . '"';
5909
                    } else {
5910
                        $enc_style = '';
5911
                    }
5912
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '/></input>';
5913
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5914
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
@@ 5913-5917 (lines=5) @@
5910
                        $enc_style = '';
5911
                    }
5912
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '/></input>';
5913
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5914
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
5915
                    } else {
5916
                        $enc_style = '';
5917
                    }
5918
                    $binding_xml .= "\n" . '    <output><soap:body use="' . $opParts['output']['use'] . '" namespace="' . $opParts['output']['namespace'] . '"' . $enc_style . '/></output>';
5919
                    $binding_xml .= "\n" . '  </operation>';
5920
                    $portType_xml .= "\n" . '  <operation name="' . $opParts['name'] . '"';