Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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