@@ -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') { |
@@ -5655,8 +5655,8 @@ discard block |
||
| 5655 | 5655 | |
| 5656 | 5656 | /** @noinspection UnnecessaryCastingInspection */ |
| 5657 | 5657 | return (string) \mb_substr($str, 0, $index) . |
| 5658 | - $substring . |
|
| 5659 | - (string) \mb_substr($str, $index, $len); |
|
| 5658 | + $substring . |
|
| 5659 | + (string) \mb_substr($str, $index, $len); |
|
| 5660 | 5660 | } |
| 5661 | 5661 | |
| 5662 | 5662 | $encoding = self::normalize_encoding($encoding, 'UTF-8'); |
@@ -5667,8 +5667,8 @@ discard block |
||
| 5667 | 5667 | } |
| 5668 | 5668 | |
| 5669 | 5669 | return ((string) self::substr($str, 0, $index, $encoding)) . |
| 5670 | - $substring . |
|
| 5671 | - ((string) self::substr($str, $index, $len, $encoding)); |
|
| 5670 | + $substring . |
|
| 5671 | + ((string) self::substr($str, $index, $len, $encoding)); |
|
| 5672 | 5672 | } |
| 5673 | 5673 | |
| 5674 | 5674 | /** |
@@ -7679,11 +7679,11 @@ discard block |
||
| 7679 | 7679 | if ($use_mb_functions === true) { |
| 7680 | 7680 | if ($encoding === 'UTF-8') { |
| 7681 | 7681 | return \mb_strtoupper(\mb_substr($match[0], 0, 1)) |
| 7682 | - . \mb_strtolower(\mb_substr($match[0], 1)); |
|
| 7682 | + . \mb_strtolower(\mb_substr($match[0], 1)); |
|
| 7683 | 7683 | } |
| 7684 | 7684 | |
| 7685 | 7685 | return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) |
| 7686 | - . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
| 7686 | + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
| 7687 | 7687 | } |
| 7688 | 7688 | |
| 7689 | 7689 | return self::ucfirst( |
@@ -8054,13 +8054,13 @@ discard block |
||
| 8054 | 8054 | } |
| 8055 | 8055 | |
| 8056 | 8056 | return ( |
| 8057 | - (string) self::substr( |
|
| 8058 | - $str, |
|
| 8059 | - 0, |
|
| 8060 | - $length, |
|
| 8061 | - $encoding |
|
| 8062 | - ) |
|
| 8063 | - ) . $substring; |
|
| 8057 | + (string) self::substr( |
|
| 8058 | + $str, |
|
| 8059 | + 0, |
|
| 8060 | + $length, |
|
| 8061 | + $encoding |
|
| 8062 | + ) |
|
| 8063 | + ) . $substring; |
|
| 8064 | 8064 | } |
| 8065 | 8065 | |
| 8066 | 8066 | /** |
@@ -10868,8 +10868,8 @@ discard block |
||
| 10868 | 10868 | |
| 10869 | 10869 | /** @noinspection AdditionOperationOnArraysInspection */ |
| 10870 | 10870 | return ((string) \mb_substr($str, 0, $offset, $encoding)) . |
| 10871 | - $replacement . |
|
| 10872 | - ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
| 10871 | + $replacement . |
|
| 10872 | + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
| 10873 | 10873 | } |
| 10874 | 10874 | |
| 10875 | 10875 | // |