Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3209-3216 (lines=8) @@
3206
   *
3207
   * @return   string The character with the highest code point than others.
3208
   */
3209
  public static function max($arg)
3210
  {
3211
    if (is_array($arg)) {
3212
      $arg = implode($arg);
3213
    }
3214
3215
    return self::chr(max(self::codepoints($arg)));
3216
  }
3217
3218
  /**
3219
   * Calculates and returns the maximum number of bytes taken by any
@@ 3259-3266 (lines=8) @@
3256
   *
3257
   * @return   string The character with the lowest code point than others.
3258
   */
3259
  public static function min($arg)
3260
  {
3261
    if (is_array($arg)) {
3262
      $arg = implode($arg);
3263
    }
3264
3265
    return self::chr(min(self::codepoints($arg)));
3266
  }
3267
3268
  /**
3269
   * Normalize the encoding-name input.