Code Duplication    Length = 21-21 lines in 2 locations

src/wp-admin/includes/class-pclzip.php 2 locations

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