Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5568-5574 (lines=7) @@
5565
   * @return string the portion of haystack.
5566
   * or false if needle is not found.
5567
   */
5568
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5569
  {
5570
    self::checkForSupport();
5571
    $encoding = self::normalizeEncoding($encoding);
5572
5573
    return \mb_strrchr($haystack, $needle, $part, $encoding);
5574
  }
5575
5576
  /**
5577
   * Reverses characters order in the string.
@@ 5616-5622 (lines=7) @@
5613
   * @return string the portion of haystack.
5614
   * or false if needle is not found.
5615
   */
5616
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5617
  {
5618
    self::checkForSupport();
5619
    $encoding = self::normalizeEncoding($encoding);
5620
5621
    return \mb_strrichr($haystack, $needle, $part, $encoding);
5622
  }
5623
5624
  /**
5625
   * Find position of last occurrence of a case-insensitive string.