Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1573-1582 (lines=10) @@
1570
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1571
   * @since 5.2.0
1572
   */
1573
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1574
  {
1575
    if (4 > func_num_args()) {
1576
      $var = filter_input($type, $variable_name, $filter);
1577
    } else {
1578
      $var = filter_input($type, $variable_name, $filter, $options);
1579
    }
1580
1581
    return self::filter($var);
1582
  }
1583
1584
  /**
1585
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1691-1700 (lines=10) @@
1688
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1689
   * @since 5.2.0
1690
   */
1691
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1692
  {
1693
    if (3 > func_num_args()) {
1694
      $variable = filter_var($variable, $filter);
1695
    } else {
1696
      $variable = filter_var($variable, $filter, $options);
1697
    }
1698
1699
    return self::filter($variable);
1700
  }
1701
1702
  /**
1703
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.