Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4555-4562 (lines=8) @@
4552
   *
4553
   * @return string|false The portion of haystack or false if needle is not found.
4554
   */
4555
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4556
  {
4557
    if ($encoding !== 'UTF-8') {
4558
      $encoding = self::normalize_encoding($encoding);
4559
    }
4560
4561
    return \mb_strrchr($haystack, $needle, $part, $encoding);
4562
  }
4563
4564
  /**
4565
   * alias for "UTF8::strstr()"
@@ 4636-4643 (lines=8) @@
4633
   *
4634
   * @return string|false <p>The portion of haystack or<br />false if needle is not found.</p>
4635
   */
4636
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4637
  {
4638
    if ($encoding !== 'UTF-8') {
4639
      $encoding = self::normalize_encoding($encoding);
4640
    }
4641
4642
    return \mb_strrichr($haystack, $needle, $part, $encoding);
4643
  }
4644
4645
  /**
4646
   * Find position of last occurrence of a case-insensitive string.