Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 2910-2917 (lines=8) @@
2907
   *
2908
   * @return   string The character with the highest code point than others.
2909
   */
2910
  public static function max($arg)
2911
  {
2912
    if (is_array($arg)) {
2913
      $arg = implode($arg);
2914
    }
2915
2916
    return self::chr(max(self::codepoints($arg)));
2917
  }
2918
2919
  /**
2920
   * Calculates and returns the maximum number of bytes taken by any
@@ 2960-2967 (lines=8) @@
2957
   *
2958
   * @return string The character with the lowest code point than others.
2959
   */
2960
  public static function min($arg)
2961
  {
2962
    if (is_array($arg)) {
2963
      $arg = implode($arg);
2964
    }
2965
2966
    return self::chr(min(self::codepoints($arg)));
2967
  }
2968
2969
  /**
2970
   * alias for "UTF8::normalize_encoding()"