Code Duplication    Length = 8-8 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4491-4498 (lines=8) @@
4488
   *
4489
   * @return string|false The portion of haystack or false if needle is not found.
4490
   */
4491
  public static function strrchr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4492
  {
4493
    if ($encoding !== 'UTF-8') {
4494
      $encoding = self::normalize_encoding($encoding);
4495
    }
4496
4497
    return \mb_strrchr($haystack, $needle, $part, $encoding);
4498
  }
4499
4500
  /**
4501
   * alias for "UTF8::strstr()"
@@ 4577-4584 (lines=8) @@
4574
   *
4575
   * @return string|false The portion of haystack or false if needle is not found.
4576
   */
4577
  public static function strrichr($haystack, $needle, $part = false, $encoding = 'UTF-8')
4578
  {
4579
    if ($encoding !== 'UTF-8') {
4580
      $encoding = self::normalize_encoding($encoding);
4581
    }
4582
4583
    return \mb_strrichr($haystack, $needle, $part, $encoding);
4584
  }
4585
4586
  /**
4587
   * Find position of last occurrence of a case-insensitive string.