Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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