Code Duplication    Length = 5-8 lines in 3 locations

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

@@ 3526-3533 (lines=8) @@
3523
          }
3524
3525
          // ----- Get the only interesting attributes
3526
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1)
3527
          {
3528
            // ----- Close the zip file
3529
            $this->privCloseFd();
3530
            $this->privSwapBackMagicQuotes();
3531
3532
            return $v_result;
3533
          }
3534
3535
          // ----- Set the file content
3536
          $p_file_list[$v_nb_extracted]['content'] = $v_string;
@@ 3558-3562 (lines=5) @@
3555
          }
3556
3557
          // ----- Get the only interesting attributes
3558
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) {
3559
            $this->privCloseFd();
3560
            $this->privSwapBackMagicQuotes();
3561
            return $v_result;
3562
          }
3563
3564
          // ----- Look for user callback abort
3565
          if ($v_result1 == 2) {
@@ 3583-3590 (lines=8) @@
3580
          }
3581
3582
          // ----- Get the only interesting attributes
3583
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1)
3584
          {
3585
            // ----- Close the zip file
3586
            $this->privCloseFd();
3587
            $this->privSwapBackMagicQuotes();
3588
3589
            return $v_result;
3590
          }
3591
3592
          // ----- Look for user callback abort
3593
          if ($v_result1 == 2) {