Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2377-2386 (lines=10) @@
2374
   *
2375
   * @return mixed
2376
   */
2377
  public static function filter_input($type, $var, $filter = FILTER_DEFAULT, $option = null)
2378
  {
2379
    if (4 > func_num_args()) {
2380
      $var = filter_input($type, $var, $filter);
2381
    } else {
2382
      $var = filter_input($type, $var, $filter, $option);
2383
    }
2384
2385
    return self::filter($var);
2386
  }
2387
2388
  /**
2389
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.
@@ 2417-2426 (lines=10) @@
2414
   *
2415
   * @return mixed
2416
   */
2417
  public static function filter_var($var, $filter = FILTER_DEFAULT, $option = null)
2418
  {
2419
    if (3 > func_num_args()) {
2420
      $var = filter_var($var, $filter);
2421
    } else {
2422
      $var = filter_var($var, $filter, $option);
2423
    }
2424
2425
    return self::filter($var);
2426
  }
2427
2428
  /**
2429
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from CP-1252 when needed.