Code Duplication    Length = 5-8 lines in 3 locations

main/inc/lib/pclzip/pclzip.lib.php 3 locations

@@ 3543-3550 (lines=8) @@
3540
          }
3541
3542
          // ----- Get the only interesting attributes
3543
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1)
3544
          {
3545
            // ----- Close the zip file
3546
            $this->privCloseFd();
3547
            $this->privSwapBackMagicQuotes();
3548
3549
            return $v_result;
3550
          }
3551
3552
          // ----- Set the file content
3553
          $p_file_list[$v_nb_extracted]['content'] = $v_string;
@@ 3575-3579 (lines=5) @@
3572
          }
3573
3574
          // ----- Get the only interesting attributes
3575
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) {
3576
            $this->privCloseFd();
3577
            $this->privSwapBackMagicQuotes();
3578
            return $v_result;
3579
          }
3580
3581
          // ----- Look for user callback abort
3582
          if ($v_result1 == 2) {
@@ 3600-3607 (lines=8) @@
3597
          }
3598
3599
          // ----- Get the only interesting attributes
3600
          if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1)
3601
          {
3602
            // ----- Close the zip file
3603
            $this->privCloseFd();
3604
            $this->privSwapBackMagicQuotes();
3605
3606
            return $v_result;
3607
          }
3608
3609
          // ----- Look for user callback abort
3610
          if ($v_result1 == 2) {