Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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