@@ -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') { |
@@ -3133,10 +3133,10 @@ discard block |
||
3133 | 3133 | |
3134 | 3134 | /** @noinspection PhpComposerExtensionStubsInspection */ |
3135 | 3135 | return ( |
3136 | - \is_object($json) === true |
|
3136 | + \is_object($json) === true |
|
3137 | 3137 | || |
3138 | 3138 | \is_array($json) === true |
3139 | - ) |
|
3139 | + ) |
|
3140 | 3140 | && |
3141 | 3141 | \json_last_error() === \JSON_ERROR_NONE; |
3142 | 3142 | } |
@@ -5419,8 +5419,8 @@ discard block |
||
5419 | 5419 | } |
5420 | 5420 | |
5421 | 5421 | return (string) self::substr($str, 0, $index, $encoding) . |
5422 | - $substring . |
|
5423 | - (string) self::substr($str, $index, $len, $encoding); |
|
5422 | + $substring . |
|
5423 | + (string) self::substr($str, $index, $len, $encoding); |
|
5424 | 5424 | } |
5425 | 5425 | |
5426 | 5426 | /** |
@@ -9653,8 +9653,8 @@ discard block |
||
9653 | 9653 | |
9654 | 9654 | /** @noinspection AdditionOperationOnArraysInspection */ |
9655 | 9655 | return (string) self::substr($str, 0, $offset, $encoding) . |
9656 | - $replacement . |
|
9657 | - (string) self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding); |
|
9656 | + $replacement . |
|
9657 | + (string) self::substr($str, $offset + $length, $string_length - $offset - $length, $encoding); |
|
9658 | 9658 | } |
9659 | 9659 | |
9660 | 9660 | \preg_match_all('/./us', $str, $smatches); |