Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2629-2638 (lines=10) @@
2626
   *
2627
   * @return mixed
2628
   */
2629
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
2630
  {
2631
    if (3 > func_num_args()) {
2632
      $var = filter_var($var, $filter);
2633
    } else {
2634
      $var = filter_var($var, $filter, $option);
2635
    }
2636
2637
    return self::filter($var);
2638
  }
2639
2640
  /**
2641
   * Normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 2828-2837 (lines=10) @@
2825
   *
2826
   * @return mixed
2827
   */
2828
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
2829
  {
2830
    if (4 > func_num_args()) {
2831
      $var = filter_input($type, $var, $filter);
2832
    } else {
2833
      $var = filter_input($type, $var, $filter, $option);
2834
    }
2835
2836
    return self::filter($var);
2837
  }
2838
2839
  /**
2840
   * Encodes an ISO-8859-1 string to UTF-8.