Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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