Code Duplication    Length = 5-7 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 4435-4439 (lines=5) @@
4432
                $this->debug('style is rpc for serialization: use is ' . $this->opData['output']['use']);
4433
                if ($this->opData['output']['use'] === 'literal') {
4434
                    // http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html R2735 says rpc/literal accessor elements should not be in a namespace
4435
                    if ($this->methodURI) {
4436
                        $payload = '<ns1:' . $this->methodname . 'Response xmlns:ns1="' . $this->methodURI . '">' . $return_val . '</ns1:' . $this->methodname . 'Response>';
4437
                    } else {
4438
                        $payload = '<' . $this->methodname . 'Response>' . $return_val . '</' . $this->methodname . 'Response>';
4439
                    }
4440
                } else {
4441
                    if ($this->methodURI) {
4442
                        $payload = '<ns1:' . $this->methodname . 'Response xmlns:ns1="' . $this->methodURI . '">' . $return_val . '</ns1:' . $this->methodname . 'Response>';
@@ 4440-4446 (lines=7) @@
4437
                    } else {
4438
                        $payload = '<' . $this->methodname . 'Response>' . $return_val . '</' . $this->methodname . 'Response>';
4439
                    }
4440
                } else {
4441
                    if ($this->methodURI) {
4442
                        $payload = '<ns1:' . $this->methodname . 'Response xmlns:ns1="' . $this->methodURI . '">' . $return_val . '</ns1:' . $this->methodname . 'Response>';
4443
                    } else {
4444
                        $payload = '<' . $this->methodname . 'Response>' . $return_val . '</' . $this->methodname . 'Response>';
4445
                    }
4446
                }
4447
            } else {
4448
                $this->debug('style is not rpc for serialization: assume document');
4449
                $payload = $return_val;