@@ -648,22 +648,22 @@ discard block |
||
648 | 648 | * @psalm-suppress PossiblyNullArrayAccess |
649 | 649 | */ |
650 | 650 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
651 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
651 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
652 | 652 | } elseif ($code_point <= 0xFFFF) { |
653 | 653 | /** |
654 | 654 | * @psalm-suppress PossiblyNullArrayAccess |
655 | 655 | */ |
656 | 656 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
657 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
658 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
657 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
658 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
659 | 659 | } else { |
660 | 660 | /** |
661 | 661 | * @psalm-suppress PossiblyNullArrayAccess |
662 | 662 | */ |
663 | 663 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
664 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
665 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
666 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
664 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
665 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
666 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
667 | 667 | } |
668 | 668 | |
669 | 669 | if ($encoding !== 'UTF-8') { |
@@ -1235,7 +1235,7 @@ discard block |
||
1235 | 1235 | $asciiOffset = 0x41; |
1236 | 1236 | |
1237 | 1237 | return (self::chr((self::ord($country_code_iso_3166_1[0]) - $asciiOffset + $flagOffset)) ?? '') . |
1238 | - (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? ''); |
|
1238 | + (self::chr((self::ord($country_code_iso_3166_1[1]) - $asciiOffset + $flagOffset)) ?? ''); |
|
1239 | 1239 | } |
1240 | 1240 | |
1241 | 1241 | /** |
@@ -2668,10 +2668,10 @@ discard block |
||
2668 | 2668 | } |
2669 | 2669 | |
2670 | 2670 | $unique_helper = $rand_int . |
2671 | - \session_id() . |
|
2672 | - ($_SERVER['REMOTE_ADDR'] ?? '') . |
|
2673 | - ($_SERVER['SERVER_ADDR'] ?? '') . |
|
2674 | - $extra_entropy; |
|
2671 | + \session_id() . |
|
2672 | + ($_SERVER['REMOTE_ADDR'] ?? '') . |
|
2673 | + ($_SERVER['SERVER_ADDR'] ?? '') . |
|
2674 | + $extra_entropy; |
|
2675 | 2675 | |
2676 | 2676 | $unique_string = \uniqid($unique_helper, true); |
2677 | 2677 | |
@@ -6093,8 +6093,8 @@ discard block |
||
6093 | 6093 | |
6094 | 6094 | /** @noinspection UnnecessaryCastingInspection */ |
6095 | 6095 | return (string) \mb_substr($str, 0, $index) . |
6096 | - $substring . |
|
6097 | - (string) \mb_substr($str, $index, $len); |
|
6096 | + $substring . |
|
6097 | + (string) \mb_substr($str, $index, $len); |
|
6098 | 6098 | } |
6099 | 6099 | |
6100 | 6100 | $encoding = self::normalize_encoding($encoding, 'UTF-8'); |
@@ -6105,8 +6105,8 @@ discard block |
||
6105 | 6105 | } |
6106 | 6106 | |
6107 | 6107 | return ((string) self::substr($str, 0, $index, $encoding)) . |
6108 | - $substring . |
|
6109 | - ((string) self::substr($str, $index, $len, $encoding)); |
|
6108 | + $substring . |
|
6109 | + ((string) self::substr($str, $index, $len, $encoding)); |
|
6110 | 6110 | } |
6111 | 6111 | |
6112 | 6112 | /** |
@@ -8345,11 +8345,11 @@ discard block |
||
8345 | 8345 | if ($use_mb_functions) { |
8346 | 8346 | if ($encoding === 'UTF-8') { |
8347 | 8347 | return \mb_strtoupper(\mb_substr($match[0], 0, 1)) |
8348 | - . \mb_strtolower(\mb_substr($match[0], 1)); |
|
8348 | + . \mb_strtolower(\mb_substr($match[0], 1)); |
|
8349 | 8349 | } |
8350 | 8350 | |
8351 | 8351 | return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) |
8352 | - . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
8352 | + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
8353 | 8353 | } |
8354 | 8354 | |
8355 | 8355 | return self::ucfirst( |
@@ -8797,13 +8797,13 @@ discard block |
||
8797 | 8797 | } |
8798 | 8798 | |
8799 | 8799 | return ( |
8800 | - (string) self::substr( |
|
8801 | - $str, |
|
8802 | - 0, |
|
8803 | - $length, |
|
8804 | - $encoding |
|
8805 | - ) |
|
8806 | - ) . $substring; |
|
8800 | + (string) self::substr( |
|
8801 | + $str, |
|
8802 | + 0, |
|
8803 | + $length, |
|
8804 | + $encoding |
|
8805 | + ) |
|
8806 | + ) . $substring; |
|
8807 | 8807 | } |
8808 | 8808 | |
8809 | 8809 | /** |
@@ -11948,8 +11948,8 @@ discard block |
||
11948 | 11948 | } |
11949 | 11949 | |
11950 | 11950 | return ((string) \mb_substr($str, 0, $offset, $encoding)) . |
11951 | - $replacement . |
|
11952 | - ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
11951 | + $replacement . |
|
11952 | + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
11953 | 11953 | } |
11954 | 11954 | |
11955 | 11955 | // |