Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1519-1528 (lines=10) @@
1516
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1517
   * @since 5.2.0
1518
   */
1519
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1520
  {
1521
    if (4 > func_num_args()) {
1522
      $var = filter_input($type, $variable_name, $filter);
1523
    } else {
1524
      $var = filter_input($type, $variable_name, $filter, $options);
1525
    }
1526
1527
    return self::filter($var);
1528
  }
1529
1530
  /**
1531
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1637-1646 (lines=10) @@
1634
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1635
   * @since 5.2.0
1636
   */
1637
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1638
  {
1639
    if (3 > func_num_args()) {
1640
      $variable = filter_var($variable, $filter);
1641
    } else {
1642
      $variable = filter_var($variable, $filter, $options);
1643
    }
1644
1645
    return self::filter($variable);
1646
  }
1647
1648
  /**
1649
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.