Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3703-3710 (lines=8) @@
3700
   *
3701
   * @return   string The character with the highest code point than others.
3702
   */
3703
  public static function max($arg)
3704
  {
3705
    if (is_array($arg)) {
3706
      $arg = implode($arg);
3707
    }
3708
3709
    return self::chr(max(self::codepoints($arg)));
3710
  }
3711
3712
  /**
3713
   * Calculates and returns the maximum number of bytes taken by any
@@ 3753-3760 (lines=8) @@
3750
   *
3751
   * @return   string The character with the lowest code point than others.
3752
   */
3753
  public static function min($arg)
3754
  {
3755
    if (is_array($arg)) {
3756
      $arg = implode($arg);
3757
    }
3758
3759
    return self::chr(min(self::codepoints($arg)));
3760
  }
3761
3762
  /**
3763
   * Normalize the encoding-name input.