Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1654-1663 (lines=10) @@
1651
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1652
   * @since 5.2.0
1653
   */
1654
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1655
  {
1656
    if (4 > func_num_args()) {
1657
      $var = filter_input($type, $variable_name, $filter);
1658
    } else {
1659
      $var = filter_input($type, $variable_name, $filter, $options);
1660
    }
1661
1662
    return self::filter($var);
1663
  }
1664
1665
  /**
1666
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1772-1781 (lines=10) @@
1769
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1770
   * @since 5.2.0
1771
   */
1772
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1773
  {
1774
    if (3 > func_num_args()) {
1775
      $variable = filter_var($variable, $filter);
1776
    } else {
1777
      $variable = filter_var($variable, $filter, $options);
1778
    }
1779
1780
    return self::filter($variable);
1781
  }
1782
1783
  /**
1784
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.