Code Duplication    Length = 22-22 lines in 2 locations

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

@@ 3932-3953 (lines=22) @@
3929
    }
3930
3931
  	// ----- Change abort status
3932
  	if ($p_entry['status'] == "aborted") {
3933
        $p_entry['status'] = "skipped";
3934
  	}
3935
	
3936
    // ----- Look for post-extract callback
3937
    elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) {
3938
3939
      // ----- Generate a local information
3940
      $v_local_header = array();
3941
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
3942
3943
      // ----- Call the callback
3944
      // Here I do not use call_user_func() because I need to send a reference to the
3945
      // header.
3946
//      eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);');
3947
      $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header);
3948
3949
      // ----- Look for abort result
3950
      if ($v_result == 2) {
3951
      	$v_result = PCLZIP_ERR_USER_ABORTED;
3952
      }
3953
    }
3954
3955
    // ----- Return
3956
    return $v_result;
@@ 4121-4142 (lines=22) @@
4118
    }
4119
4120
	// ----- Change abort status
4121
	if ($p_entry['status'] == "aborted") {
4122
      $p_entry['status'] = "skipped";
4123
	}
4124
4125
    // ----- Look for post-extract callback
4126
    elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) {
4127
4128
      // ----- Generate a local information
4129
      $v_local_header = array();
4130
      $this->privConvertHeader2FileInfo($p_entry, $v_local_header);
4131
4132
      // ----- Call the callback
4133
      // Here I do not use call_user_func() because I need to send a reference to the
4134
      // header.
4135
//      eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);');
4136
      $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header);
4137
4138
      // ----- Look for abort result
4139
      if ($v_result == 2) {
4140
      	$v_result = PCLZIP_ERR_USER_ABORTED;
4141
      }
4142
    }
4143
4144
    return $v_result;
4145
  }