Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2476-2485 (lines=10) @@
2473
   *
2474
   * @return mixed
2475
   */
2476
  public static function filter_input_array($type, $definition = null, $add_empty = true)
2477
  {
2478
    if (2 > func_num_args()) {
2479
      $a = filter_input_array($type);
2480
    } else {
2481
      $a = filter_input_array($type, $definition, $add_empty);
2482
    }
2483
2484
    return self::filter($a);
2485
  }
2486
2487
  /**
2488
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 2516-2525 (lines=10) @@
2513
   *
2514
   * @return mixed
2515
   */
2516
  public static function filter_var_array($data, $definition = null, $add_empty = true)
2517
  {
2518
    if (2 > func_num_args()) {
2519
      $a = filter_var_array($data);
2520
    } else {
2521
      $a = filter_var_array($data, $definition, $add_empty);
2522
    }
2523
2524
    return self::filter($a);
2525
  }
2526
2527
  /**
2528
   * Check if the number of unicode characters are not more than the specified integer.