@@ -581,22 +581,22 @@ discard block |
||
581 | 581 | * @psalm-suppress PossiblyNullArrayAccess |
582 | 582 | */ |
583 | 583 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
584 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
584 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
585 | 585 | } elseif ($code_point <= 0xFFFF) { |
586 | 586 | /** |
587 | 587 | * @psalm-suppress PossiblyNullArrayAccess |
588 | 588 | */ |
589 | 589 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
590 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
591 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
590 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
591 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
592 | 592 | } else { |
593 | 593 | /** |
594 | 594 | * @psalm-suppress PossiblyNullArrayAccess |
595 | 595 | */ |
596 | 596 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
597 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
598 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
599 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
597 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
598 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
599 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
600 | 600 | } |
601 | 601 | |
602 | 602 | if ($encoding !== 'UTF-8') { |
@@ -5783,8 +5783,8 @@ discard block |
||
5783 | 5783 | |
5784 | 5784 | /** @noinspection UnnecessaryCastingInspection */ |
5785 | 5785 | return (string) \mb_substr($str, 0, $index) . |
5786 | - $substring . |
|
5787 | - (string) \mb_substr($str, $index, $len); |
|
5786 | + $substring . |
|
5787 | + (string) \mb_substr($str, $index, $len); |
|
5788 | 5788 | } |
5789 | 5789 | |
5790 | 5790 | $encoding = self::normalize_encoding($encoding, 'UTF-8'); |
@@ -5795,8 +5795,8 @@ discard block |
||
5795 | 5795 | } |
5796 | 5796 | |
5797 | 5797 | return ((string) self::substr($str, 0, $index, $encoding)) . |
5798 | - $substring . |
|
5799 | - ((string) self::substr($str, $index, $len, $encoding)); |
|
5798 | + $substring . |
|
5799 | + ((string) self::substr($str, $index, $len, $encoding)); |
|
5800 | 5800 | } |
5801 | 5801 | |
5802 | 5802 | /** |
@@ -7575,11 +7575,11 @@ discard block |
||
7575 | 7575 | if ($useMbFunction === true) { |
7576 | 7576 | if ($encoding === 'UTF-8') { |
7577 | 7577 | return \mb_strtoupper(\mb_substr($match[0], 0, 1)) |
7578 | - . \mb_strtolower(\mb_substr($match[0], 1)); |
|
7578 | + . \mb_strtolower(\mb_substr($match[0], 1)); |
|
7579 | 7579 | } |
7580 | 7580 | |
7581 | 7581 | return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) |
7582 | - . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
7582 | + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
7583 | 7583 | } |
7584 | 7584 | |
7585 | 7585 | return self::ucfirst( |
@@ -10649,8 +10649,8 @@ discard block |
||
10649 | 10649 | |
10650 | 10650 | /** @noinspection AdditionOperationOnArraysInspection */ |
10651 | 10651 | return ((string) \mb_substr($str, 0, $offset, $encoding)) . |
10652 | - $replacement . |
|
10653 | - ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
10652 | + $replacement . |
|
10653 | + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
10654 | 10654 | } |
10655 | 10655 | |
10656 | 10656 | // |