Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 4300-4310 (lines=11) @@
4297
    $v_binary_data = fread($this->zip_fd, 26);
4298
4299
    // ----- Look for invalid block size
4300
    if (strlen($v_binary_data) != 26)
4301
    {
4302
      $p_header['filename'] = "";
4303
      $p_header['status'] = "invalid_header";
4304
4305
      // ----- Error log
4306
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data));
4307
4308
      // ----- Return
4309
      return PclZip::errorCode();
4310
    }
4311
4312
    // ----- Extract the values
4313
    $v_data = unpack('vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len', $v_binary_data);
@@ 4403-4413 (lines=11) @@
4400
    $v_binary_data = fread($this->zip_fd, 42);
4401
4402
    // ----- Look for invalid block size
4403
    if (strlen($v_binary_data) != 42)
4404
    {
4405
      $p_header['filename'] = "";
4406
      $p_header['status'] = "invalid_header";
4407
4408
      // ----- Error log
4409
      PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data));
4410
4411
      // ----- Return
4412
      return PclZip::errorCode();
4413
    }
4414
4415
    // ----- Extract the values
4416
    $p_header = unpack('vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset', $v_binary_data);