Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3303-3310 (lines=8) @@
3300
   *
3301
   * @return string <p>The character with the highest code point than others.</p>
3302
   */
3303
  public static function max($arg)
3304
  {
3305
    if (is_array($arg) === true) {
3306
      $arg = implode('', $arg);
3307
    }
3308
3309
    return self::chr(max(self::codepoints($arg)));
3310
  }
3311
3312
  /**
3313
   * Calculates and returns the maximum number of bytes taken by any
@@ 3353-3360 (lines=8) @@
3350
   *
3351
   * @return string <p>The character with the lowest code point than others.</p>
3352
   */
3353
  public static function min($arg)
3354
  {
3355
    if (is_array($arg) === true) {
3356
      $arg = implode('', $arg);
3357
    }
3358
3359
    return self::chr(min(self::codepoints($arg)));
3360
  }
3361
3362
  /**
3363
   * alias for "UTF8::normalize_encoding()"