Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1635-1644 (lines=10) @@
1632
   * fails.
1633
   * @since 5.2.0
1634
   */
1635
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1636
  {
1637
    if (2 > func_num_args()) {
1638
      $a = filter_input_array($type);
1639
    } else {
1640
      $a = filter_input_array($type, $definition, $add_empty);
1641
    }
1642
1643
    return self::filter($a);
1644
  }
1645
1646
  /**
1647
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1750-1759 (lines=10) @@
1747
   * the variable is not set.
1748
   * @since 5.2.0
1749
   */
1750
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1751
  {
1752
    if (2 > func_num_args()) {
1753
      $a = filter_var_array($data);
1754
    } else {
1755
      $a = filter_var_array($data, $definition, $add_empty);
1756
    }
1757
1758
    return self::filter($a);
1759
  }
1760
1761
  /**
1762
   * Check if the number of unicode characters are not more than the specified integer.