Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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