Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1664-1673 (lines=10) @@
1661
   * fails.
1662
   * @since 5.2.0
1663
   */
1664
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1665
  {
1666
    if (2 > func_num_args()) {
1667
      $a = filter_input_array($type);
1668
    } else {
1669
      $a = filter_input_array($type, $definition, $add_empty);
1670
    }
1671
1672
    return self::filter($a);
1673
  }
1674
1675
  /**
1676
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1779-1788 (lines=10) @@
1776
   * the variable is not set.
1777
   * @since 5.2.0
1778
   */
1779
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1780
  {
1781
    if (2 > func_num_args()) {
1782
      $a = filter_var_array($data);
1783
    } else {
1784
      $a = filter_var_array($data, $definition, $add_empty);
1785
    }
1786
1787
    return self::filter($a);
1788
  }
1789
1790
  /**
1791
   * Check if the number of unicode characters are not more than the specified integer.