Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1534-1543 (lines=10) @@
1531
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1532
   * @since 5.2.0
1533
   */
1534
  public static function filter_input($type, $variable_name, $filter = FILTER_DEFAULT, $options = null)
1535
  {
1536
    if (4 > func_num_args()) {
1537
      $var = filter_input($type, $variable_name, $filter);
1538
    } else {
1539
      $var = filter_input($type, $variable_name, $filter, $options);
1540
    }
1541
1542
    return self::filter($var);
1543
  }
1544
1545
  /**
1546
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1652-1661 (lines=10) @@
1649
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1650
   * @since 5.2.0
1651
   */
1652
  public static function filter_var($variable, $filter = FILTER_DEFAULT, $options = null)
1653
  {
1654
    if (3 > func_num_args()) {
1655
      $variable = filter_var($variable, $filter);
1656
    } else {
1657
      $variable = filter_var($variable, $filter, $options);
1658
    }
1659
1660
    return self::filter($variable);
1661
  }
1662
1663
  /**
1664
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.