Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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