Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1469-1478 (lines=10) @@
1466
   *
1467
   * @return mixed
1468
   */
1469
  public static function filter_input_array($type, $definition = null, $add_empty = true)
1470
  {
1471
    if (2 > func_num_args()) {
1472
      $a = filter_input_array($type);
1473
    } else {
1474
      $a = filter_input_array($type, $definition, $add_empty);
1475
    }
1476
1477
    return self::filter($a);
1478
  }
1479
1480
  /**
1481
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1509-1518 (lines=10) @@
1506
   *
1507
   * @return mixed
1508
   */
1509
  public static function filter_var_array($data, $definition = null, $add_empty = true)
1510
  {
1511
    if (2 > func_num_args()) {
1512
      $a = filter_var_array($data);
1513
    } else {
1514
      $a = filter_var_array($data, $definition, $add_empty);
1515
    }
1516
1517
    return self::filter($a);
1518
  }
1519
1520
  /**
1521
   * Check if the number of unicode characters are not more than the specified integer.