Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2742-2749 (lines=8) @@
2739
   *
2740
   * @return string <p>The character with the highest code point than others.</p>
2741
   */
2742
  public static function max($arg): string
2743
  {
2744
    if (\is_array($arg) === true) {
2745
      $arg = \implode('', $arg);
2746
    }
2747
2748
    return self::chr(\max(self::codepoints($arg)));
2749
  }
2750
2751
  /**
2752
   * Calculates and returns the maximum number of bytes taken by any
@@ 2799-2806 (lines=8) @@
2796
   *
2797
   * @return string <p>The character with the lowest code point than others.</p>
2798
   */
2799
  public static function min($arg): string
2800
  {
2801
    if (\is_array($arg) === true) {
2802
      $arg = \implode('', $arg);
2803
    }
2804
2805
    return self::chr(\min(self::codepoints($arg)));
2806
  }
2807
2808
  /**
2809
   * alias for "UTF8::normalize_encoding()"