Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5498-5505 (lines=8) @@
5495
   *
5496
   * @return string|false The portion of haystack or false if needle is not found.
5497
   */
5498
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5499
  {
5500
    if ($encoding !== 'UTF-8') {
5501
      $encoding = self::normalize_encoding($encoding);
5502
    }
5503
5504
    return \mb_strrchr($haystack, $needle, $part, $encoding);
5505
  }
5506
5507
  /**
5508
   * alias for "UTF8::strstr()"
@@ 5584-5591 (lines=8) @@
5581
   *
5582
   * @return string|false The portion of haystack or false if needle is not found.
5583
   */
5584
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5585
  {
5586
    if ($encoding !== 'UTF-8') {
5587
      $encoding = self::normalize_encoding($encoding);
5588
    }
5589
5590
    return \mb_strrichr($haystack, $needle, $part, $encoding);
5591
  }
5592
5593
  /**
5594
   * Find position of last occurrence of a case-insensitive string.