Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 1448-1461 (lines=14) @@
1445
        // ----- Look for options that request a path value
1446
        case PCLZIP_OPT_PATH :
1447
        case PCLZIP_OPT_REMOVE_PATH :
1448
        case PCLZIP_OPT_ADD_PATH :
1449
          // ----- Check the number of parameters
1450
          if (($i+1) >= $p_size) {
1451
            // ----- Error log
1452
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
1453
1454
            // ----- Return
1455
            return PclZip::errorCode();
1456
          }
1457
1458
          // ----- Get the value
1459
          $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);
1460
          $i++;
1461
        break;
1462
1463
        case PCLZIP_OPT_TEMP_FILE_THRESHOLD :
1464
          // ----- Check the number of parameters
@@ 1727-1740 (lines=14) @@
1724
        break;
1725
1726
        // ----- Look for options that request an octal value
1727
        case PCLZIP_OPT_SET_CHMOD :
1728
          // ----- Check the number of parameters
1729
          if (($i+1) >= $p_size) {
1730
            // ----- Error log
1731
            PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
1732
1733
            // ----- Return
1734
            return PclZip::errorCode();
1735
          }
1736
1737
          // ----- Get the value
1738
          $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
1739
          $i++;
1740
        break;
1741
1742
        // ----- Look for options that request a call-back
1743
        case PCLZIP_CB_PRE_EXTRACT :