Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1691-1700 (lines=10) @@
1688
   * fails.
1689
   * @since 5.2.0
1690
   */
1691
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1692
  {
1693
    if (2 > func_num_args()) {
1694
      $a = filter_input_array($type);
1695
    } else {
1696
      $a = filter_input_array($type, $definition, $add_empty);
1697
    }
1698
1699
    return self::filter($a);
1700
  }
1701
1702
  /**
1703
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1806-1815 (lines=10) @@
1803
   * the variable is not set.
1804
   * @since 5.2.0
1805
   */
1806
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1807
  {
1808
    if (2 > func_num_args()) {
1809
      $a = filter_var_array($data);
1810
    } else {
1811
      $a = filter_var_array($data, $definition, $add_empty);
1812
    }
1813
1814
    return self::filter($a);
1815
  }
1816
1817
  /**
1818
   * Check if the number of unicode characters are not more than the specified integer.