Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3661-3668 (lines=8) @@
3658
   *
3659
   * @return   string The character with the highest code point than others.
3660
   */
3661
  public static function max($arg)
3662
  {
3663
    if (is_array($arg)) {
3664
      $arg = implode($arg);
3665
    }
3666
3667
    return self::chr(max(self::codepoints($arg)));
3668
  }
3669
3670
  /**
3671
   * Calculates and returns the maximum number of bytes taken by any
@@ 3711-3718 (lines=8) @@
3708
   *
3709
   * @return   string The character with the lowest code point than others.
3710
   */
3711
  public static function min($arg)
3712
  {
3713
    if (is_array($arg)) {
3714
      $arg = implode($arg);
3715
    }
3716
3717
    return self::chr(min(self::codepoints($arg)));
3718
  }
3719
3720
  /**
3721
   * Normalize the encoding-name input.