Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1676-1685 (lines=10) @@
1673
   * fails.
1674
   * @since 5.2.0
1675
   */
1676
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1677
  {
1678
    if (2 > func_num_args()) {
1679
      $a = filter_input_array($type);
1680
    } else {
1681
      $a = filter_input_array($type, $definition, $add_empty);
1682
    }
1683
1684
    return self::filter($a);
1685
  }
1686
1687
  /**
1688
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1791-1800 (lines=10) @@
1788
   * the variable is not set.
1789
   * @since 5.2.0
1790
   */
1791
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1792
  {
1793
    if (2 > func_num_args()) {
1794
      $a = filter_var_array($data);
1795
    } else {
1796
      $a = filter_var_array($data, $definition, $add_empty);
1797
    }
1798
1799
    return self::filter($a);
1800
  }
1801
1802
  /**
1803
   * Check if the number of unicode characters are not more than the specified integer.