Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 1435-1441 (lines=7) @@
1432
    while ($i<$p_size) {
1433
1434
      // ----- Check if the option is supported
1435
      if (!isset($v_requested_options[$p_options_list[$i]])) {
1436
        // ----- Error log
1437
        PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method");
1438
1439
        // ----- Return
1440
        return PclZip::errorCode();
1441
      }
1442
1443
      // ----- Look for next option
1444
      switch ($p_options_list[$i]) {
@@ 1878-1884 (lines=7) @@
1875
    foreach ($p_file_list as $v_key => $v_value) {
1876
    
1877
      // ----- Check if the option is supported
1878
      if (!isset($v_requested_options[$v_key])) {
1879
        // ----- Error log
1880
        PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute '".$v_key."' for this file");
1881
1882
        // ----- Return
1883
        return PclZip::errorCode();
1884
      }
1885
1886
      // ----- Look for attribute
1887
      switch ($v_key) {