Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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