Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3287-3294 (lines=8) @@
3284
   *
3285
   * @return string <p>The character with the highest code point than others.</p>
3286
   */
3287
  public static function max($arg)
3288
  {
3289
    if (is_array($arg) === true) {
3290
      $arg = implode('', $arg);
3291
    }
3292
3293
    return self::chr(max(self::codepoints($arg)));
3294
  }
3295
3296
  /**
3297
   * Calculates and returns the maximum number of bytes taken by any
@@ 3337-3344 (lines=8) @@
3334
   *
3335
   * @return string <p>The character with the lowest code point than others.</p>
3336
   */
3337
  public static function min($arg)
3338
  {
3339
    if (is_array($arg) === true) {
3340
      $arg = implode('', $arg);
3341
    }
3342
3343
    return self::chr(min(self::codepoints($arg)));
3344
  }
3345
3346
  /**
3347
   * alias for "UTF8::normalize_encoding()"