Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3396-3403 (lines=8) @@
3393
   *
3394
   * @return   string The character with the highest code point than others.
3395
   */
3396
  public static function max($arg)
3397
  {
3398
    if (is_array($arg)) {
3399
      $arg = implode($arg);
3400
    }
3401
3402
    return self::chr(max(self::codepoints($arg)));
3403
  }
3404
3405
  /**
3406
   * Accepts a string and returns an array of Unicode code points.
@@ 3448-3455 (lines=8) @@
3445
   *
3446
   * @return   string The character with the lowest code point than others.
3447
   */
3448
  public static function min($arg)
3449
  {
3450
    if (is_array($arg)) {
3451
      $arg = implode($arg);
3452
    }
3453
3454
    return self::chr(min(self::codepoints($arg)));
3455
  }
3456
3457
  /**
3458
   * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character.