Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2457-2466 (lines=10) @@
2454
   *
2455
   * @return mixed
2456
   */
2457
  public static function filter_input_array($type, $definition = null, $add_empty = true)
2458
  {
2459
    if (2 > func_num_args()) {
2460
      $a = filter_input_array($type);
2461
    } else {
2462
      $a = filter_input_array($type, $definition, $add_empty);
2463
    }
2464
2465
    return self::filter($a);
2466
  }
2467
2468
  /**
2469
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 2497-2506 (lines=10) @@
2494
   *
2495
   * @return mixed
2496
   */
2497
  public static function filter_var_array($data, $definition = null, $add_empty = true)
2498
  {
2499
    if (2 > func_num_args()) {
2500
      $a = filter_var_array($data);
2501
    } else {
2502
      $a = filter_var_array($data, $definition, $add_empty);
2503
    }
2504
2505
    return self::filter($a);
2506
  }
2507
2508
  /**
2509
   * Checks if the number of Unicode characters in a string are not