Code Duplication    Length = 8-9 lines in 2 locations

app/Vendor/PHPExcel/PHPExcel/Shared/PCLZip/pclzip.lib.php 2 locations

@@ 4881-4889 (lines=9) @@
4878
            unset($v_local_header);
4879
4880
            // ----- Write the file header
4881
            if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) {
4882
                // ----- Close the zip file
4883
                $this->privCloseFd();
4884
                $v_temp_zip->privCloseFd();
4885
                @unlink($v_zip_temp_name);
4886
4887
                // ----- Return
4888
                return $v_result;
4889
            }
4890
4891
            // ----- Read/write the data block
4892
            if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) {
@@ 4909-4916 (lines=8) @@
4906
        // ----- Re-Create the Central Dir files header
4907
        for ($i=0; $i<sizeof($v_header_list); $i++) {
4908
            // ----- Create the file header
4909
            if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
4910
                $v_temp_zip->privCloseFd();
4911
                $this->privCloseFd();
4912
                @unlink($v_zip_temp_name);
4913
4914
                // ----- Return
4915
                return $v_result;
4916
            }
4917
4918
            // ----- Transform the header to a 'usable' info
4919
            $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]);