Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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