Code Duplication    Length = 15-17 lines in 2 locations

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

@@ 319-333 (lines=15) @@
316
      // ----- Look for 2 args
317
      // Here we need to support the first historic synopsis of the
318
      // method.
319
      else {
320
321
        // ----- Get the first argument
322
        $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0];
323
324
        // ----- Look for the optional second argument
325
        if ($v_size == 2) {
326
          $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
327
        }
328
        else if ($v_size > 2) {
329
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
330
		                       "Invalid number / type of arguments");
331
          return 0;
332
        }
333
      }
334
    }
335
    
336
    // ----- Look for default option values
@@ 504-520 (lines=17) @@
501
      // ----- Look for 2 args
502
      // Here we need to support the first historic synopsis of the
503
      // method.
504
      else {
505
506
        // ----- Get the first argument
507
        $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0];
508
509
        // ----- Look for the optional second argument
510
        if ($v_size == 2) {
511
          $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
512
        }
513
        else if ($v_size > 2) {
514
          // ----- Error log
515
          PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");
516
517
          // ----- Return
518
          return 0;
519
        }
520
      }
521
    }
522
523
    // ----- Look for default option values