Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1361-1370 (lines=10) @@
1358
   * fails.
1359
   * @since 5.2.0
1360
   */
1361
  public static function filter_input_array(int $type, $definition = null, bool $add_empty = true)
1362
  {
1363
    if (2 > \func_num_args()) {
1364
      $a = \filter_input_array($type);
1365
    } else {
1366
      $a = \filter_input_array($type, $definition, $add_empty);
1367
    }
1368
1369
    return self::filter($a);
1370
  }
1371
1372
  /**
1373
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1476-1485 (lines=10) @@
1473
   * the variable is not set.
1474
   * @since 5.2.0
1475
   */
1476
  public static function filter_var_array(array $data, $definition = null, bool $add_empty = true)
1477
  {
1478
    if (2 > \func_num_args()) {
1479
      $a = \filter_var_array($data);
1480
    } else {
1481
      $a = \filter_var_array($data, $definition, $add_empty);
1482
    }
1483
1484
    return self::filter($a);
1485
  }
1486
1487
  /**
1488
   * Returns the first $n characters of the string.