Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3241-3248 (lines=8) @@
3238
   *
3239
   * @return   string The character with the highest code point than others.
3240
   */
3241
  public static function max($arg)
3242
  {
3243
    if (is_array($arg)) {
3244
      $arg = implode($arg);
3245
    }
3246
3247
    return self::chr(max(self::codepoints($arg)));
3248
  }
3249
3250
  /**
3251
   * Calculates and returns the maximum number of bytes taken by any
@@ 3291-3298 (lines=8) @@
3288
   *
3289
   * @return   string The character with the lowest code point than others.
3290
   */
3291
  public static function min($arg)
3292
  {
3293
    if (is_array($arg)) {
3294
      $arg = implode($arg);
3295
    }
3296
3297
    return self::chr(min(self::codepoints($arg)));
3298
  }
3299
3300
  /**
3301
   * Normalize the encoding-name input.