Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2696-2705 (lines=10) @@
2693
   *
2694
   * @return mixed
2695
   */
2696
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
2697
  {
2698
    if (3 > func_num_args()) {
2699
      $var = filter_var($var, $filter);
2700
    } else {
2701
      $var = filter_var($var, $filter, $option);
2702
    }
2703
2704
    return self::filter($var);
2705
  }
2706
2707
  /**
2708
   * Normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 2895-2904 (lines=10) @@
2892
   *
2893
   * @return mixed
2894
   */
2895
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
2896
  {
2897
    if (4 > func_num_args()) {
2898
      $var = filter_input($type, $var, $filter);
2899
    } else {
2900
      $var = filter_input($type, $var, $filter, $option);
2901
    }
2902
2903
    return self::filter($var);
2904
  }
2905
2906
  /**
2907
   * Encodes an ISO-8859-1 string to UTF-8.