Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/class.tar.php 2 locations

@@ 614-622 (lines=9) @@
611
        // Encode processed files into TAR file format
612
        $this->__generateTar();
613
        // GZ Compress the data if we need to
614
        if ($useGzip) {
615
            // Make sure we have gzip support
616
            if (!function_exists('gzencode')) {
617
                return false;
618
            }
619
            $file = gzencode($this->tar_file);
620
        } else {
621
            $file = $this->tar_file;
622
        }
623
        // Write the TAR file
624
        $fp = fopen($filename, 'wb');
625
        fwrite($fp, $file);
@@ 645-653 (lines=9) @@
642
        // Encode processed files into TAR file format
643
        $this->__generateTar();
644
        // GZ Compress the data if we need to
645
        if ($useGzip) {
646
            // Make sure we have gzip support
647
            if (!function_exists('gzencode')) {
648
                return false;
649
            }
650
            $file = gzencode($this->tar_file);
651
        } else {
652
            $file = $this->tar_file;
653
        }
654
        return $file;
655
    }
656
}