Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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