Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2397-2406 (lines=10) @@
2394
   *
2395
   * @return mixed
2396
   */
2397
  public static function filter_input_array($type, $definition = null, $add_empty = true)
2398
  {
2399
    if (2 > func_num_args()) {
2400
      $a = filter_input_array($type);
2401
    } else {
2402
      $a = filter_input_array($type, $definition, $add_empty);
2403
    }
2404
2405
    return self::filter($a);
2406
  }
2407
2408
  /**
2409
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 2437-2446 (lines=10) @@
2434
   *
2435
   * @return mixed
2436
   */
2437
  public static function filter_var_array($data, $definition = null, $add_empty = true)
2438
  {
2439
    if (2 > func_num_args()) {
2440
      $a = filter_var_array($data);
2441
    } else {
2442
      $a = filter_var_array($data, $definition, $add_empty);
2443
    }
2444
2445
    return self::filter($a);
2446
  }
2447
2448
  /**
2449
   * Checks if the number of Unicode characters in a string are not