Code Duplication    Length = 4-8 lines in 2 locations

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

@@ 3679-3686 (lines=8) @@
3676
      $v_inclusion
3677
      = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION],
3678
                                $p_entry['filename']); 
3679
      if ($v_inclusion == 0) {
3680
3681
        PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION,
3682
			                     "Filename '".$p_entry['filename']."' is "
3683
								 ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION");
3684
3685
        return PclZip::errorCode();
3686
      }
3687
    }
3688
3689
    // ----- Look for pre-extract callback
@@ 3863-3866 (lines=4) @@
3860
        else {
3861
          // ----- TBC
3862
          // Need to be finished
3863
          if (($p_entry['flag'] & 1) == 1) {
3864
            PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.');
3865
            return PclZip::errorCode();
3866
          }
3867
3868
3869
          // ----- Look for using temporary file to unzip