Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 2234-2243 (lines=10) @@
2231
2232
    // ----- Add the files
2233
    $v_header_list = array();
2234
    if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1)
2235
    {
2236
      fclose($v_zip_temp_fd);
2237
      $this->privCloseFd();
2238
      @unlink($v_zip_temp_name);
2239
      $this->privSwapBackMagicQuotes();
2240
2241
      // ----- Return
2242
      return $v_result;
2243
    }
2244
2245
    // ----- Store the offset of the central dir
2246
    $v_offset = @ftell($this->zip_fd);
@@ 2263-2271 (lines=9) @@
2260
    {
2261
      // ----- Create the file header
2262
      if ($v_header_list[$i]['status'] == 'ok') {
2263
        if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) {
2264
          fclose($v_zip_temp_fd);
2265
          $this->privCloseFd();
2266
          @unlink($v_zip_temp_name);
2267
          $this->privSwapBackMagicQuotes();
2268
2269
          // ----- Return
2270
          return $v_result;
2271
        }
2272
        $v_count++;
2273
      }
2274