@@ -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') { |
@@ -5770,8 +5770,8 @@ discard block |
||
| 5770 | 5770 | |
| 5771 | 5771 | /** @noinspection UnnecessaryCastingInspection */ |
| 5772 | 5772 | return (string) \mb_substr($str, 0, $index) . |
| 5773 | - $substring . |
|
| 5774 | - (string) \mb_substr($str, $index, $len); |
|
| 5773 | + $substring . |
|
| 5774 | + (string) \mb_substr($str, $index, $len); |
|
| 5775 | 5775 | } |
| 5776 | 5776 | |
| 5777 | 5777 | $encoding = self::normalize_encoding($encoding, 'UTF-8'); |
@@ -5782,8 +5782,8 @@ discard block |
||
| 5782 | 5782 | } |
| 5783 | 5783 | |
| 5784 | 5784 | return ((string) self::substr($str, 0, $index, $encoding)) . |
| 5785 | - $substring . |
|
| 5786 | - ((string) self::substr($str, $index, $len, $encoding)); |
|
| 5785 | + $substring . |
|
| 5786 | + ((string) self::substr($str, $index, $len, $encoding)); |
|
| 5787 | 5787 | } |
| 5788 | 5788 | |
| 5789 | 5789 | /** |
@@ -7562,11 +7562,11 @@ discard block |
||
| 7562 | 7562 | if ($useMbFunction === true) { |
| 7563 | 7563 | if ($encoding === 'UTF-8') { |
| 7564 | 7564 | return \mb_strtoupper(\mb_substr($match[0], 0, 1)) |
| 7565 | - . \mb_strtolower(\mb_substr($match[0], 1)); |
|
| 7565 | + . \mb_strtolower(\mb_substr($match[0], 1)); |
|
| 7566 | 7566 | } |
| 7567 | 7567 | |
| 7568 | 7568 | return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) |
| 7569 | - . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
| 7569 | + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
| 7570 | 7570 | } |
| 7571 | 7571 | |
| 7572 | 7572 | return self::ucfirst( |
@@ -7929,7 +7929,7 @@ discard block |
||
| 7929 | 7929 | $length, |
| 7930 | 7930 | $encoding |
| 7931 | 7931 | ) |
| 7932 | - ) . $substring; |
|
| 7932 | + ) . $substring; |
|
| 7933 | 7933 | } |
| 7934 | 7934 | |
| 7935 | 7935 | /** |
@@ -10646,8 +10646,8 @@ discard block |
||
| 10646 | 10646 | |
| 10647 | 10647 | /** @noinspection AdditionOperationOnArraysInspection */ |
| 10648 | 10648 | return ((string) \mb_substr($str, 0, $offset, $encoding)) . |
| 10649 | - $replacement . |
|
| 10650 | - ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
| 10649 | + $replacement . |
|
| 10650 | + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
| 10651 | 10651 | } |
| 10652 | 10652 | |
| 10653 | 10653 | // |