Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3347-3354 (lines=8) @@
3344
   *
3345
   * @return   string The character with the highest code point than others
3346
   */
3347
  public static function max($arg)
3348
  {
3349
    if (is_array($arg)) {
3350
      $arg = implode($arg);
3351
    }
3352
3353
    return self::chr(max(self::codepoints($arg)));
3354
  }
3355
3356
  /**
3357
   * accepts a string and returns an array of Unicode Code Points
@@ 3401-3408 (lines=8) @@
3398
   *
3399
   * @return   string The character with the lowest code point than others
3400
   */
3401
  public static function min($arg)
3402
  {
3403
    if (is_array($arg)) {
3404
      $arg = implode($arg);
3405
    }
3406
3407
    return self::chr(min(self::codepoints($arg)));
3408
  }
3409
3410
  /**
3411
   * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character.