Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1615-1624 (lines=10) @@
1612
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1613
   * @since 5.2.0
1614
   */
1615
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1616
  {
1617
    if (4 > func_num_args()) {
1618
      $var = filter_input($type, $variable_name, $filter);
1619
    } else {
1620
      $var = filter_input($type, $variable_name, $filter, $options);
1621
    }
1622
1623
    return self::filter($var);
1624
  }
1625
1626
  /**
1627
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1733-1742 (lines=10) @@
1730
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1731
   * @since 5.2.0
1732
   */
1733
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1734
  {
1735
    if (3 > func_num_args()) {
1736
      $variable = filter_var($variable, $filter);
1737
    } else {
1738
      $variable = filter_var($variable, $filter, $options);
1739
    }
1740
1741
    return self::filter($variable);
1742
  }
1743
1744
  /**
1745
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.