Code Duplication    Length = 5-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 5634-5638 (lines=5) @@
5631
                foreach ($attrs['operations'] as $opName => $opParts) {
5632
                    $binding_xml .= "\n" . '  <operation name="' . $opName . '">';
5633
                    $binding_xml .= "\n" . '    <soap:operation soapAction="' . $opParts['soapAction'] . '" style="'. $opParts['style'] . '"/>';
5634
                    if (isset($opParts['input']['encodingStyle']) && $opParts['input']['encodingStyle'] != '') {
5635
                        $enc_style = ' encodingStyle="' . $opParts['input']['encodingStyle'] . '"';
5636
                    } else {
5637
                        $enc_style = '';
5638
                    }
5639
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '/></input>';
5640
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5641
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
@@ 5640-5644 (lines=5) @@
5637
                        $enc_style = '';
5638
                    }
5639
                    $binding_xml .= "\n" . '    <input><soap:body use="' . $opParts['input']['use'] . '" namespace="' . $opParts['input']['namespace'] . '"' . $enc_style . '/></input>';
5640
                    if (isset($opParts['output']['encodingStyle']) && $opParts['output']['encodingStyle'] != '') {
5641
                        $enc_style = ' encodingStyle="' . $opParts['output']['encodingStyle'] . '"';
5642
                    } else {
5643
                        $enc_style = '';
5644
                    }
5645
                    $binding_xml .= "\n" . '    <output><soap:body use="' . $opParts['output']['use'] . '" namespace="' . $opParts['output']['namespace'] . '"' . $enc_style . '/></output>';
5646
                    $binding_xml .= "\n" . '  </operation>';
5647
                    $portType_xml .= "\n" . '  <operation name="' . $opParts['name'] . '"';