@@ -541,22 +541,22 @@ discard block |
||
| 541 | 541 | * @psalm-suppress PossiblyNullArrayAccess |
| 542 | 542 | */ |
| 543 | 543 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
| 544 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 544 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 545 | 545 | } elseif ($code_point <= 0xFFFF) { |
| 546 | 546 | /** |
| 547 | 547 | * @psalm-suppress PossiblyNullArrayAccess |
| 548 | 548 | */ |
| 549 | 549 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
| 550 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 551 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 550 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 551 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 552 | 552 | } else { |
| 553 | 553 | /** |
| 554 | 554 | * @psalm-suppress PossiblyNullArrayAccess |
| 555 | 555 | */ |
| 556 | 556 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
| 557 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
| 558 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 559 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 557 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
| 558 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 559 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | if ($encoding !== 'UTF-8') { |
@@ -5428,8 +5428,8 @@ discard block |
||
| 5428 | 5428 | } |
| 5429 | 5429 | |
| 5430 | 5430 | return (string) self::substr($str, 0, $index, $encoding) . |
| 5431 | - $substring . |
|
| 5432 | - (string) self::substr($str, $index, $len, $encoding); |
|
| 5431 | + $substring . |
|
| 5432 | + (string) self::substr($str, $index, $len, $encoding); |
|
| 5433 | 5433 | } |
| 5434 | 5434 | |
| 5435 | 5435 | /** |
@@ -9673,8 +9673,8 @@ discard block |
||
| 9673 | 9673 | |
| 9674 | 9674 | /** @noinspection AdditionOperationOnArraysInspection */ |
| 9675 | 9675 | return (string) self::substr($str, 0, $offset, $encoding) . |
| 9676 | - $replacement . |
|
| 9677 | - (string) self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding); |
|
| 9676 | + $replacement . |
|
| 9677 | + (string) self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding); |
|
| 9678 | 9678 | } |
| 9679 | 9679 | |
| 9680 | 9680 | \preg_match_all('/./us', $str, $smatches); |