Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1702-1711 (lines=10) @@
1699
   * fails.
1700
   * @since 5.2.0
1701
   */
1702
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1703
  {
1704
    if (2 > func_num_args()) {
1705
      $a = filter_input_array($type);
1706
    } else {
1707
      $a = filter_input_array($type, $definition, $add_empty);
1708
    }
1709
1710
    return self::filter($a);
1711
  }
1712
1713
  /**
1714
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1817-1826 (lines=10) @@
1814
   * the variable is not set.
1815
   * @since 5.2.0
1816
   */
1817
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1818
  {
1819
    if (2 > func_num_args()) {
1820
      $a = filter_var_array($data);
1821
    } else {
1822
      $a = filter_var_array($data, $definition, $add_empty);
1823
    }
1824
1825
    return self::filter($a);
1826
  }
1827
1828
  /**
1829
   * Check if the number of unicode characters are not more than the specified integer.