Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3483-3490 (lines=8) @@
3480
   *
3481
   * @return string <p>The character with the highest code point than others.</p>
3482
   */
3483
  public static function max($arg)
3484
  {
3485
    if (is_array($arg) === true) {
3486
      $arg = implode('', $arg);
3487
    }
3488
3489
    return self::chr(max(self::codepoints($arg)));
3490
  }
3491
3492
  /**
3493
   * Calculates and returns the maximum number of bytes taken by any
@@ 3533-3540 (lines=8) @@
3530
   *
3531
   * @return string <p>The character with the lowest code point than others.</p>
3532
   */
3533
  public static function min($arg)
3534
  {
3535
    if (is_array($arg) === true) {
3536
      $arg = implode('', $arg);
3537
    }
3538
3539
    return self::chr(min(self::codepoints($arg)));
3540
  }
3541
3542
  /**
3543
   * alias for "UTF8::normalize_encoding()"