Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1956-1965 (lines=10) @@
1953
   *
1954
   * @return mixed
1955
   */
1956
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
1957
  {
1958
    if (4 > func_num_args()) {
1959
      $var = filter_input($type, $var, $filter);
1960
    } else {
1961
      $var = filter_input($type, $var, $filter, $option);
1962
    }
1963
1964
    return self::filter($var);
1965
  }
1966
1967
  /**
1968
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 1996-2005 (lines=10) @@
1993
   *
1994
   * @return mixed
1995
   */
1996
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
1997
  {
1998
    if (3 > func_num_args()) {
1999
      $var = filter_var($var, $filter);
2000
    } else {
2001
      $var = filter_var($var, $filter, $option);
2002
    }
2003
2004
    return self::filter($var);
2005
  }
2006
2007
  /**
2008
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.