Code Duplication    Length = 4-9 lines in 2 locations

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

@@ 2835-2838 (lines=4) @@
2832
    @gzclose($v_file_compressed);
2833
2834
    // ----- Check the minimum file size
2835
    if (filesize($v_gzip_temp_name) < 18) {
2836
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes');
2837
      return PclZip::errorCode();
2838
    }
2839
2840
    // ----- Extract the compressed attributes
2841
    if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) {
@@ 4622-4630 (lines=9) @@
4619
    $v_binary_data = fread($this->zip_fd, 18);
4620
4621
    // ----- Look for invalid block size
4622
    if (strlen($v_binary_data) != 18)
4623
    {
4624
4625
      // ----- Error log
4626
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data));
4627
4628
      // ----- Return
4629
      return PclZip::errorCode();
4630
    }
4631
4632
    // ----- Extract the values
4633
    $v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data);