Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5498-5504 (lines=7) @@
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
    self::checkForSupport();
5501
    $encoding = self::normalizeEncoding($encoding);
5502
5503
    return \mb_strrchr($haystack, $needle, $part, $encoding);
5504
  }
5505
5506
  /**
5507
   * alias for "UTF8::strstr()"
@@ 5583-5589 (lines=7) @@
5580
   *
5581
   * @return string|false The portion of haystack or false if needle is not found.
5582
   */
5583
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
5584
  {
5585
    self::checkForSupport();
5586
    $encoding = self::normalizeEncoding($encoding);
5587
5588
    return \mb_strrichr($haystack, $needle, $part, $encoding);
5589
  }
5590
5591
  /**
5592
   * Find position of last occurrence of a case-insensitive string.