Code Duplication    Length = 7-8 lines in 2 locations

htdocs/class/libraries/vendor/symfony/polyfill-mbstring/Mbstring.php 2 locations

@@ 438-445 (lines=8) @@
435
        return self::getSubpart($pos, $part, $haystack, $encoding);
436
    }
437
438
    public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null)
439
    {
440
        $encoding = self::getEncoding($encoding);
441
        $needle = self::mb_substr($needle, 0, 1, $encoding);
442
        $pos = iconv_strrpos($haystack, $needle, $encoding);
443
444
        return self::getSubpart($pos, $part, $haystack, $encoding);
445
    }
446
447
    public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
448
    {
@@ 447-453 (lines=7) @@
444
        return self::getSubpart($pos, $part, $haystack, $encoding);
445
    }
446
447
    public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
448
    {
449
        $needle = self::mb_substr($needle, 0, 1, $encoding);
450
        $pos = self::mb_strripos($haystack, $needle, $encoding);
451
452
        return self::getSubpart($pos, $part, $haystack, $encoding);
453
    }
454
455
    public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
456
    {