Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3480-3487 (lines=8) @@
3477
   *
3478
   * @return string <p>The character with the highest code point than others.</p>
3479
   */
3480
  public static function max($arg)
3481
  {
3482
    if (is_array($arg) === true) {
3483
      $arg = implode('', $arg);
3484
    }
3485
3486
    return self::chr(max(self::codepoints($arg)));
3487
  }
3488
3489
  /**
3490
   * Calculates and returns the maximum number of bytes taken by any
@@ 3543-3550 (lines=8) @@
3540
   *
3541
   * @return string <p>The character with the lowest code point than others.</p>
3542
   */
3543
  public static function min($arg)
3544
  {
3545
    if (is_array($arg) === true) {
3546
      $arg = implode('', $arg);
3547
    }
3548
3549
    return self::chr(min(self::codepoints($arg)));
3550
  }
3551
3552
  /**
3553
   * alias for "UTF8::normalize_encoding()"