Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1089-1098 (lines=10) @@
1086
   * fails.
1087
   * @since 5.2.0
1088
   */
1089
  public static function filter_input_array(int $type, $definition = null, bool $add_empty = true)
1090
  {
1091
    if (2 > \func_num_args()) {
1092
      $a = \filter_input_array($type);
1093
    } else {
1094
      $a = \filter_input_array($type, $definition, $add_empty);
1095
    }
1096
1097
    return self::filter($a);
1098
  }
1099
1100
  /**
1101
   * "filter_var()"-wrapper with normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.
@@ 1204-1213 (lines=10) @@
1201
   * the variable is not set.
1202
   * @since 5.2.0
1203
   */
1204
  public static function filter_var_array(array $data, $definition = null, bool $add_empty = true)
1205
  {
1206
    if (2 > \func_num_args()) {
1207
      $a = \filter_var_array($data);
1208
    } else {
1209
      $a = \filter_var_array($data, $definition, $add_empty);
1210
    }
1211
1212
    return self::filter($a);
1213
  }
1214
1215
  /**
1216
   * Check if the number of unicode characters are not more than the specified integer.