Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3917-3924 (lines=8) @@
3914
   *
3915
   * @return   string The character with the highest code point than others.
3916
   */
3917
  public static function max($arg)
3918
  {
3919
    if (is_array($arg)) {
3920
      $arg = implode($arg);
3921
    }
3922
3923
    return self::chr(max(self::codepoints($arg)));
3924
  }
3925
3926
  /**
3927
   * Calculates and returns the maximum number of bytes taken by any
@@ 3967-3974 (lines=8) @@
3964
   *
3965
   * @return   string The character with the lowest code point than others.
3966
   */
3967
  public static function min($arg)
3968
  {
3969
    if (is_array($arg)) {
3970
      $arg = implode($arg);
3971
    }
3972
3973
    return self::chr(min(self::codepoints($arg)));
3974
  }
3975
3976
  /**
3977
   * Normalize the encoding-name input.