Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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