Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1310-1319 (lines=10) @@
1307
   * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
1308
   * @since 5.2.0
1309
   */
1310
  public static function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = null)
1311
  {
1312
    if (4 > \func_num_args()) {
1313
      $var = \filter_input($type, $variable_name, $filter);
1314
    } else {
1315
      $var = \filter_input($type, $variable_name, $filter, $options);
1316
    }
1317
1318
    return self::filter($var);
1319
  }
1320
1321
  /**
1322
   * "filter_input_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1428-1437 (lines=10) @@
1425
   * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
1426
   * @since 5.2.0
1427
   */
1428
  public static function filter_var($variable, int $filter = FILTER_DEFAULT, $options = null)
1429
  {
1430
    if (3 > \func_num_args()) {
1431
      $variable = \filter_var($variable, $filter);
1432
    } else {
1433
      $variable = \filter_var($variable, $filter, $options);
1434
    }
1435
1436
    return self::filter($variable);
1437
  }
1438
1439
  /**
1440
   * "filter_var_array()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.