Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3352-3359 (lines=8) @@
3349
   *
3350
   * @return string <p>The character with the highest code point than others.</p>
3351
   */
3352
  public static function max($arg)
3353
  {
3354
    if (is_array($arg) === true) {
3355
      $arg = implode('', $arg);
3356
    }
3357
3358
    return self::chr(max(self::codepoints($arg)));
3359
  }
3360
3361
  /**
3362
   * Calculates and returns the maximum number of bytes taken by any
@@ 3402-3409 (lines=8) @@
3399
   *
3400
   * @return string <p>The character with the lowest code point than others.</p>
3401
   */
3402
  public static function min($arg)
3403
  {
3404
    if (is_array($arg) === true) {
3405
      $arg = implode('', $arg);
3406
    }
3407
3408
    return self::chr(min(self::codepoints($arg)));
3409
  }
3410
3411
  /**
3412
   * alias for "UTF8::normalize_encoding()"