Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3728-3735 (lines=8) @@
3725
   *
3726
   * @return   string The character with the highest code point than others.
3727
   */
3728
  public static function max($arg)
3729
  {
3730
    if (is_array($arg)) {
3731
      $arg = implode($arg);
3732
    }
3733
3734
    return self::chr(max(self::codepoints($arg)));
3735
  }
3736
3737
  /**
3738
   * Calculates and returns the maximum number of bytes taken by any
@@ 3778-3785 (lines=8) @@
3775
   *
3776
   * @return   string The character with the lowest code point than others.
3777
   */
3778
  public static function min($arg)
3779
  {
3780
    if (is_array($arg)) {
3781
      $arg = implode($arg);
3782
    }
3783
3784
    return self::chr(min(self::codepoints($arg)));
3785
  }
3786
3787
  /**
3788
   * Normalize the encoding-name input.