Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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