Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 404-409 (lines=6) @@
401
    {
402
        $encoding = self::getEncoding($encoding);
403
404
        if ($start < 0) {
405
            $start = iconv_strlen($s, $encoding) + $start;
406
            if ($start < 0) {
407
                $start = 0;
408
            }
409
        }
410
411
        if (null === $length) {
412
            $length = 2147483647;
@@ 413-418 (lines=6) @@
410
411
        if (null === $length) {
412
            $length = 2147483647;
413
        } elseif ($length < 0) {
414
            $length = iconv_strlen($s, $encoding) + $length - $start;
415
            if ($length < 0) {
416
                return '';
417
            }
418
        }
419
420
        return iconv_substr($s, $start, $length, $encoding).'';
421
    }