Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5466-5472 (lines=7) @@
5463
   * @return string the portion of haystack.
5464
   * or false if needle is not found.
5465
   */
5466
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5467
  {
5468
    self::checkForSupport();
5469
    $encoding = self::normalizeEncoding($encoding);
5470
5471
    return \mb_strrchr($haystack, $needle, $part, $encoding);
5472
  }
5473
5474
  /**
5475
   * Reverses characters order in the string.
@@ 5514-5520 (lines=7) @@
5511
   * @return string the portion of haystack.
5512
   * or false if needle is not found.
5513
   */
5514
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5515
  {
5516
    self::checkForSupport();
5517
    $encoding = self::normalizeEncoding($encoding);
5518
5519
    return \mb_strrichr($haystack, $needle, $part, $encoding);
5520
  }
5521
5522
  /**
5523
   * Find position of last occurrence of a case-insensitive string.