Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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