Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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