Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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