Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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