Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1648-1657 (lines=10) @@
1645
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1646
   * @since 5.2.0
1647
   */
1648
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1649
  {
1650
    if (4 > func_num_args()) {
1651
      $var = filter_input($type, $variable_name, $filter);
1652
    } else {
1653
      $var = filter_input($type, $variable_name, $filter, $options);
1654
    }
1655
1656
    return self::filter($var);
1657
  }
1658
1659
  /**
1660
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1766-1775 (lines=10) @@
1763
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1764
   * @since 5.2.0
1765
   */
1766
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1767
  {
1768
    if (3 > func_num_args()) {
1769
      $variable = filter_var($variable, $filter);
1770
    } else {
1771
      $variable = filter_var($variable, $filter, $options);
1772
    }
1773
1774
    return self::filter($variable);
1775
  }
1776
1777
  /**
1778
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.