Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3457-3464 (lines=8) @@
3454
   *
3455
   * @return string <p>The character with the highest code point than others.</p>
3456
   */
3457
  public static function max($arg): string
3458
  {
3459
    if (\is_array($arg) === true) {
3460
      $arg = \implode('', $arg);
3461
    }
3462
3463
    return self::chr(\max(self::codepoints($arg)));
3464
  }
3465
3466
  /**
3467
   * Calculates and returns the maximum number of bytes taken by any
@@ 3519-3526 (lines=8) @@
3516
   *
3517
   * @return string <p>The character with the lowest code point than others.</p>
3518
   */
3519
  public static function min($arg): string
3520
  {
3521
    if (\is_array($arg) === true) {
3522
      $arg = \implode('', $arg);
3523
    }
3524
3525
    return self::chr(\min(self::codepoints($arg)));
3526
  }
3527
3528
  /**
3529
   * alias for "UTF8::normalize_encoding()"