@@ -498,16 +498,16 @@ discard block |
||
498 | 498 | $chr = self::$CHR[$code_point]; |
499 | 499 | } elseif ($code_point <= 0x7FF) { |
500 | 500 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
501 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
501 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
502 | 502 | } elseif ($code_point <= 0xFFFF) { |
503 | 503 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
504 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
505 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
504 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
505 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
506 | 506 | } else { |
507 | 507 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
508 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
509 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
510 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
508 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
509 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
510 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
511 | 511 | } |
512 | 512 | |
513 | 513 | if ($encoding !== 'UTF-8') { |
@@ -994,9 +994,9 @@ discard block |
||
994 | 994 | |
995 | 995 | if ($pos) { |
996 | 996 | return \rtrim( |
997 | - self::substr($text, 0, $pos, $encoding), |
|
998 | - $trimChars |
|
999 | - ) . $replacerForSkippedText; |
|
997 | + self::substr($text, 0, $pos, $encoding), |
|
998 | + $trimChars |
|
999 | + ) . $replacerForSkippedText; |
|
1000 | 1000 | } |
1001 | 1001 | |
1002 | 1002 | return $text; |
@@ -1035,9 +1035,9 @@ discard block |
||
1035 | 1035 | } |
1036 | 1036 | |
1037 | 1037 | $pos_end = \min( |
1038 | - self::strpos($text, ' ', $l, $encoding), |
|
1039 | - self::strpos($text, '.', $l, $encoding) |
|
1040 | - ) - $pos_start; |
|
1038 | + self::strpos($text, ' ', $l, $encoding), |
|
1039 | + self::strpos($text, '.', $l, $encoding) |
|
1040 | + ) - $pos_start; |
|
1041 | 1041 | |
1042 | 1042 | if (!$pos_end || $pos_end <= 0) { |
1043 | 1043 | $extract = $replacerForSkippedText . \ltrim( |
@@ -1077,9 +1077,9 @@ discard block |
||
1077 | 1077 | |
1078 | 1078 | if ($pos_end) { |
1079 | 1079 | $extract = \rtrim( |
1080 | - self::substr($text, 0, $pos_end, $encoding), |
|
1081 | - $trimChars |
|
1082 | - ) . $replacerForSkippedText; |
|
1080 | + self::substr($text, 0, $pos_end, $encoding), |
|
1081 | + $trimChars |
|
1082 | + ) . $replacerForSkippedText; |
|
1083 | 1083 | } else { |
1084 | 1084 | $extract = $text; |
1085 | 1085 | } |
@@ -2745,10 +2745,10 @@ discard block |
||
2745 | 2745 | $json = self::json_decode($str); |
2746 | 2746 | |
2747 | 2747 | return ( |
2748 | - \is_object($json) === true |
|
2748 | + \is_object($json) === true |
|
2749 | 2749 | || |
2750 | 2750 | \is_array($json) === true |
2751 | - ) |
|
2751 | + ) |
|
2752 | 2752 | && |
2753 | 2753 | \json_last_error() === JSON_ERROR_NONE; |
2754 | 2754 | } |