@@ -543,16 +543,16 @@ discard block |
||
| 543 | 543 | $chr = self::$CHR[$code_point]; |
| 544 | 544 | } elseif ($code_point <= 0x7FF) { |
| 545 | 545 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
| 546 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 546 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 547 | 547 | } elseif ($code_point <= 0xFFFF) { |
| 548 | 548 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
| 549 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 550 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 549 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 550 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 551 | 551 | } else { |
| 552 | 552 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
| 553 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
| 554 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 555 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 553 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
| 554 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
| 555 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
| 556 | 556 | } |
| 557 | 557 | |
| 558 | 558 | if ($encoding !== 'UTF-8') { |
@@ -1040,9 +1040,9 @@ discard block |
||
| 1040 | 1040 | |
| 1041 | 1041 | if ($pos) { |
| 1042 | 1042 | return \rtrim( |
| 1043 | - self::substr($str, 0, $pos, $encoding), |
|
| 1044 | - $trimChars |
|
| 1045 | - ) . $replacerForSkippedText; |
|
| 1043 | + self::substr($str, 0, $pos, $encoding), |
|
| 1044 | + $trimChars |
|
| 1045 | + ) . $replacerForSkippedText; |
|
| 1046 | 1046 | } |
| 1047 | 1047 | |
| 1048 | 1048 | return $str; |
@@ -1081,9 +1081,9 @@ discard block |
||
| 1081 | 1081 | } |
| 1082 | 1082 | |
| 1083 | 1083 | $pos_end = \min( |
| 1084 | - self::strpos($str, ' ', $l, $encoding), |
|
| 1085 | - self::strpos($str, '.', $l, $encoding) |
|
| 1086 | - ) - $pos_start; |
|
| 1084 | + self::strpos($str, ' ', $l, $encoding), |
|
| 1085 | + self::strpos($str, '.', $l, $encoding) |
|
| 1086 | + ) - $pos_start; |
|
| 1087 | 1087 | |
| 1088 | 1088 | if (!$pos_end || $pos_end <= 0) { |
| 1089 | 1089 | $extract = $replacerForSkippedText . \ltrim( |
@@ -1123,9 +1123,9 @@ discard block |
||
| 1123 | 1123 | |
| 1124 | 1124 | if ($pos_end) { |
| 1125 | 1125 | $extract = \rtrim( |
| 1126 | - self::substr($str, 0, $pos_end, $encoding), |
|
| 1127 | - $trimChars |
|
| 1128 | - ) . $replacerForSkippedText; |
|
| 1126 | + self::substr($str, 0, $pos_end, $encoding), |
|
| 1127 | + $trimChars |
|
| 1128 | + ) . $replacerForSkippedText; |
|
| 1129 | 1129 | } else { |
| 1130 | 1130 | $extract = $str; |
| 1131 | 1131 | } |
@@ -2834,10 +2834,10 @@ discard block |
||
| 2834 | 2834 | |
| 2835 | 2835 | /** @noinspection PhpComposerExtensionStubsInspection */ |
| 2836 | 2836 | return ( |
| 2837 | - \is_object($json) === true |
|
| 2837 | + \is_object($json) === true |
|
| 2838 | 2838 | || |
| 2839 | 2839 | \is_array($json) === true |
| 2840 | - ) |
|
| 2840 | + ) |
|
| 2841 | 2841 | && |
| 2842 | 2842 | \json_last_error() === JSON_ERROR_NONE; |
| 2843 | 2843 | } |