Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4507-4514 (lines=8) @@
4504
   *
4505
   * @return string|false The portion of haystack or false if needle is not found.
4506
   */
4507
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4508
  {
4509
    if ($encoding !== 'UTF-8') {
4510
      $encoding = self::normalize_encoding($encoding);
4511
    }
4512
4513
    return \mb_strrchr($haystack, $needle, $part, $encoding);
4514
  }
4515
4516
  /**
4517
   * alias for "UTF8::strstr()"
@@ 4588-4595 (lines=8) @@
4585
   *
4586
   * @return string|false <p>The portion of haystack or<br />false if needle is not found.</p>
4587
   */
4588
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4589
  {
4590
    if ($encoding !== 'UTF-8') {
4591
      $encoding = self::normalize_encoding($encoding);
4592
    }
4593
4594
    return \mb_strrichr($haystack, $needle, $part, $encoding);
4595
  }
4596
4597
  /**
4598
   * Find position of last occurrence of a case-insensitive string.