Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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