Code Duplication    Length = 11-11 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 4537-4547 (lines=11) @@
4534
        // this data.
4535
        if (strlen($payload) > 1024 && isset($this->headers) && isset($this->headers['accept-encoding'])) {
4536
            if (false !== strpos($this->headers['accept-encoding'], 'gzip')) {
4537
                if (function_exists('gzencode')) {
4538
                    if (isset($this->debug_flag) && $this->debug_flag) {
4539
                        $payload .= '<!-- Content being gzipped -->';
4540
                    }
4541
                    $this->outgoing_headers[] = 'Content-Encoding: gzip';
4542
                    $payload                  = gzencode($payload);
4543
                } else {
4544
                    if (isset($this->debug_flag) && $this->debug_flag) {
4545
                        $payload .= '<!-- Content will not be gzipped: no gzencode -->';
4546
                    }
4547
                }
4548
            } elseif (false !== strpos($this->headers['accept-encoding'], 'deflate')) {
4549
                // Note: MSIE requires gzdeflate output (no Zlib header and checksum),
4550
                // instead of gzcompress output,
@@ 4552-4562 (lines=11) @@
4549
                // Note: MSIE requires gzdeflate output (no Zlib header and checksum),
4550
                // instead of gzcompress output,
4551
                // which conflicts with HTTP 1.1 spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5)
4552
                if (function_exists('gzdeflate')) {
4553
                    if (isset($this->debug_flag) && $this->debug_flag) {
4554
                        $payload .= '<!-- Content being deflated -->';
4555
                    }
4556
                    $this->outgoing_headers[] = 'Content-Encoding: deflate';
4557
                    $payload                  = gzdeflate($payload);
4558
                } else {
4559
                    if (isset($this->debug_flag) && $this->debug_flag) {
4560
                        $payload .= '<!-- Content will not be deflated: no gzcompress -->';
4561
                    }
4562
                }
4563
            }
4564
        }
4565
        //end code