Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1623-1632 (lines=10) @@
1620
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1621
   * @since 5.2.0
1622
   */
1623
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1624
  {
1625
    if (4 > func_num_args()) {
1626
      $var = filter_input($type, $variable_name, $filter);
1627
    } else {
1628
      $var = filter_input($type, $variable_name, $filter, $options);
1629
    }
1630
1631
    return self::filter($var);
1632
  }
1633
1634
  /**
1635
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1741-1750 (lines=10) @@
1738
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1739
   * @since 5.2.0
1740
   */
1741
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1742
  {
1743
    if (3 > func_num_args()) {
1744
      $variable = filter_var($variable, $filter);
1745
    } else {
1746
      $variable = filter_var($variable, $filter, $options);
1747
    }
1748
1749
    return self::filter($variable);
1750
  }
1751
1752
  /**
1753
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.