Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1622-1631 (lines=10) @@
1619
   * fails.
1620
   * @since 5.2.0
1621
   */
1622
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1623
  {
1624
    if (2 > func_num_args()) {
1625
      $a = filter_input_array($type);
1626
    } else {
1627
      $a = filter_input_array($type, $definition, $add_empty);
1628
    }
1629
1630
    return self::filter($a);
1631
  }
1632
1633
  /**
1634
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1737-1746 (lines=10) @@
1734
   * the variable is not set.
1735
   * @since 5.2.0
1736
   */
1737
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1738
  {
1739
    if (2 > func_num_args()) {
1740
      $a = filter_var_array($data);
1741
    } else {
1742
      $a = filter_var_array($data, $definition, $add_empty);
1743
    }
1744
1745
    return self::filter($a);
1746
  }
1747
1748
  /**
1749
   * Check if the number of unicode characters are not more than the specified integer.