Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1013-1022 (lines=10) @@
1010
   * fails.
1011
   * @since 5.2.0
1012
   */
1013
  public static function filter_input_array(int $type, $definition = null, bool $add_empty = true)
1014
  {
1015
    if (2 > \func_num_args()) {
1016
      $a = \filter_input_array($type);
1017
    } else {
1018
      $a = \filter_input_array($type, $definition, $add_empty);
1019
    }
1020
1021
    return self::filter($a);
1022
  }
1023
1024
  /**
1025
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1128-1137 (lines=10) @@
1125
   * the variable is not set.
1126
   * @since 5.2.0
1127
   */
1128
  public static function filter_var_array(array $data, $definition = null, bool $add_empty = true)
1129
  {
1130
    if (2 > \func_num_args()) {
1131
      $a = \filter_var_array($data);
1132
    } else {
1133
      $a = \filter_var_array($data, $definition, $add_empty);
1134
    }
1135
1136
    return self::filter($a);
1137
  }
1138
1139
  /**
1140
   * Check if the number of unicode characters are not more than the specified integer.