Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1582-1591 (lines=10) @@
1579
   * fails.
1580
   * @since 5.2.0
1581
   */
1582
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1583
  {
1584
    if (2 > func_num_args()) {
1585
      $a = filter_input_array($type);
1586
    } else {
1587
      $a = filter_input_array($type, $definition, $add_empty);
1588
    }
1589
1590
    return self::filter($a);
1591
  }
1592
1593
  /**
1594
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1697-1706 (lines=10) @@
1694
   * the variable is not set.
1695
   * @since 5.2.0
1696
   */
1697
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1698
  {
1699
    if (2 > func_num_args()) {
1700
      $a = filter_var_array($data);
1701
    } else {
1702
      $a = filter_var_array($data, $definition, $add_empty);
1703
    }
1704
1705
    return self::filter($a);
1706
  }
1707
1708
  /**
1709
   * Check if the number of unicode characters are not more than the specified integer.