Code Duplication    Length = 5-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 5925-5929 (lines=5) @@
5922
                foreach ($attrs['operations'] as $opName => $opParts) {
5923
                    $binding_xml .= "\n" . '  <operation name="' . $opName . '">';
5924
                    $binding_xml .= "\n" . '    <soap:operation soapAction="' . $opParts['soapAction'] . '" style="' . $opParts['style'] . '">';
5925
                    if (isset($opParts['input']['encodingStyle']) && $opParts['input']['encodingStyle'] != '') {
5926
                        $enc_style = ' encodingStyle="' . $opParts['input']['encodingStyle'] . '"';
5927
                    } else {
5928
                        $enc_style = '';
5929
                    }
5930
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '></input>';
5931
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5932
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
@@ 5931-5935 (lines=5) @@
5928
                        $enc_style = '';
5929
                    }
5930
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '></input>';
5931
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5932
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
5933
                    } else {
5934
                        $enc_style = '';
5935
                    }
5936
                    $binding_xml  .= "\n" . '    <output><soap:body use="' . $opParts['output']['use'] . '" namespace="' . $opParts['output']['namespace'] . '"' . $enc_style . '></output>';
5937
                    $binding_xml  .= "\n" . '  </operation>';
5938
                    $portType_xml .= "\n" . '  <operation name="' . $opParts['name'] . '"';