Code Duplication    Length = 11-11 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 4516-4526 (lines=11) @@
4513
        // this data.
4514
        if (strlen($payload) > 1024 && isset($this->headers) && isset($this->headers['accept-encoding'])) {
4515
            if (false !== strpos($this->headers['accept-encoding'], 'gzip')) {
4516
                if (function_exists('gzencode')) {
4517
                    if (isset($this->debug_flag) && $this->debug_flag) {
4518
                        $payload .= '<!-- Content being gzipped -->';
4519
                    }
4520
                    $this->outgoing_headers[] = 'Content-Encoding: gzip';
4521
                    $payload                  = gzencode($payload);
4522
                } else {
4523
                    if (isset($this->debug_flag) && $this->debug_flag) {
4524
                        $payload .= '<!-- Content will not be gzipped: no gzencode -->';
4525
                    }
4526
                }
4527
            } elseif (false !== strpos($this->headers['accept-encoding'], 'deflate')) {
4528
                // Note: MSIE requires gzdeflate output (no Zlib header and checksum),
4529
                // instead of gzcompress output,
@@ 4531-4541 (lines=11) @@
4528
                // Note: MSIE requires gzdeflate output (no Zlib header and checksum),
4529
                // instead of gzcompress output,
4530
                // which conflicts with HTTP 1.1 spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5)
4531
                if (function_exists('gzdeflate')) {
4532
                    if (isset($this->debug_flag) && $this->debug_flag) {
4533
                        $payload .= '<!-- Content being deflated -->';
4534
                    }
4535
                    $this->outgoing_headers[] = 'Content-Encoding: deflate';
4536
                    $payload                  = gzdeflate($payload);
4537
                } else {
4538
                    if (isset($this->debug_flag) && $this->debug_flag) {
4539
                        $payload .= '<!-- Content will not be deflated: no gzcompress -->';
4540
                    }
4541
                }
4542
            }
4543
        }
4544
        //end code