Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2395-2404 (lines=10) @@
2392
   *
2393
   * @return mixed
2394
   */
2395
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
2396
  {
2397
    if (4 > func_num_args()) {
2398
      $var = filter_input($type, $var, $filter);
2399
    } else {
2400
      $var = filter_input($type, $var, $filter, $option);
2401
    }
2402
2403
    return self::filter($var);
2404
  }
2405
2406
  /**
2407
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 2435-2444 (lines=10) @@
2432
   *
2433
   * @return mixed
2434
   */
2435
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
2436
  {
2437
    if (3 > func_num_args()) {
2438
      $var = filter_var($var, $filter);
2439
    } else {
2440
      $var = filter_var($var, $filter, $option);
2441
    }
2442
2443
    return self::filter($var);
2444
  }
2445
2446
  /**
2447
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.