Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5548-5554 (lines=7) @@
5545
   * @return string the portion of haystack.
5546
   * or false if needle is not found.
5547
   */
5548
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5549
  {
5550
    self::checkForSupport();
5551
    $encoding = self::normalizeEncoding($encoding);
5552
5553
    return \mb_strrchr($haystack, $needle, $part, $encoding);
5554
  }
5555
5556
  /**
5557
   * Reverses characters order in the string.
@@ 5596-5602 (lines=7) @@
5593
   * @return string the portion of haystack.
5594
   * or false if needle is not found.
5595
   */
5596
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5597
  {
5598
    self::checkForSupport();
5599
    $encoding = self::normalizeEncoding($encoding);
5600
5601
    return \mb_strrichr($haystack, $needle, $part, $encoding);
5602
  }
5603
5604
  /**
5605
   * Find position of last occurrence of a case-insensitive string.