Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 1118-1127 (lines=10) @@
1115
    if (@is_file($this->zipname))
1116
    {
1117
      // ----- Open the zip file
1118
      if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
1119
      {
1120
        $this->privSwapBackMagicQuotes();
1121
1122
        // ----- Error log
1123
        PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');
1124
1125
        // ----- Return
1126
        return 0;
1127
      }
1128
1129
      // ----- Read the central directory informations
1130
      $v_central_dir = array();
@@ 3160-3170 (lines=11) @@
3157
    $this->privDisableMagicQuotes();
3158
3159
    // ----- Open the zip file
3160
    if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
3161
    {
3162
      // ----- Magic quotes trick
3163
      $this->privSwapBackMagicQuotes();
3164
3165
      // ----- Error log
3166
      PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');
3167
3168
      // ----- Return
3169
      return PclZip::errorCode();
3170
    }
3171
3172
    // ----- Read the central directory informations
3173
    $v_central_dir = array();