Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2832-2839 (lines=8) @@
2829
   *
2830
   * @return string <p>The character with the highest code point than others.</p>
2831
   */
2832
  public static function max($arg): string
2833
  {
2834
    if (\is_array($arg) === true) {
2835
      $arg = \implode('', $arg);
2836
    }
2837
2838
    return self::chr(\max(self::codepoints($arg)));
2839
  }
2840
2841
  /**
2842
   * Calculates and returns the maximum number of bytes taken by any
@@ 2889-2896 (lines=8) @@
2886
   *
2887
   * @return string <p>The character with the lowest code point than others.</p>
2888
   */
2889
  public static function min($arg): string
2890
  {
2891
    if (\is_array($arg) === true) {
2892
      $arg = \implode('', $arg);
2893
    }
2894
2895
    return self::chr(\min(self::codepoints($arg)));
2896
  }
2897
2898
  /**
2899
   * alias for "UTF8::normalize_encoding()"