Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1628-1637 (lines=10) @@
1625
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1626
   * @since 5.2.0
1627
   */
1628
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1629
  {
1630
    if (4 > func_num_args()) {
1631
      $var = filter_input($type, $variable_name, $filter);
1632
    } else {
1633
      $var = filter_input($type, $variable_name, $filter, $options);
1634
    }
1635
1636
    return self::filter($var);
1637
  }
1638
1639
  /**
1640
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1746-1755 (lines=10) @@
1743
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1744
   * @since 5.2.0
1745
   */
1746
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1747
  {
1748
    if (3 > func_num_args()) {
1749
      $variable = filter_var($variable, $filter);
1750
    } else {
1751
      $variable = filter_var($variable, $filter, $options);
1752
    }
1753
1754
    return self::filter($variable);
1755
  }
1756
1757
  /**
1758
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.