Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1924-1933 (lines=10) @@
1921
   *
1922
   * @return mixed
1923
   */
1924
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
1925
  {
1926
    if (4 > func_num_args()) {
1927
      $var = filter_input($type, $var, $filter);
1928
    } else {
1929
      $var = filter_input($type, $var, $filter, $option);
1930
    }
1931
1932
    return self::filter($var);
1933
  }
1934
1935
  /**
1936
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 1964-1973 (lines=10) @@
1961
   *
1962
   * @return mixed
1963
   */
1964
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
1965
  {
1966
    if (3 > func_num_args()) {
1967
      $var = filter_var($var, $filter);
1968
    } else {
1969
      $var = filter_var($var, $filter, $option);
1970
    }
1971
1972
    return self::filter($var);
1973
  }
1974
1975
  /**
1976
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.