@@ -583,22 +583,22 @@ discard block |
||
583 | 583 | * @psalm-suppress PossiblyNullArrayAccess |
584 | 584 | */ |
585 | 585 | $chr = self::$CHR[($code_point >> 6) + 0xC0] . |
586 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
586 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
587 | 587 | } elseif ($code_point <= 0xFFFF) { |
588 | 588 | /** |
589 | 589 | * @psalm-suppress PossiblyNullArrayAccess |
590 | 590 | */ |
591 | 591 | $chr = self::$CHR[($code_point >> 12) + 0xE0] . |
592 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
593 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
592 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
593 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
594 | 594 | } else { |
595 | 595 | /** |
596 | 596 | * @psalm-suppress PossiblyNullArrayAccess |
597 | 597 | */ |
598 | 598 | $chr = self::$CHR[($code_point >> 18) + 0xF0] . |
599 | - self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
600 | - self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
601 | - self::$CHR[($code_point & 0x3F) + 0x80]; |
|
599 | + self::$CHR[(($code_point >> 12) & 0x3F) + 0x80] . |
|
600 | + self::$CHR[(($code_point >> 6) & 0x3F) + 0x80] . |
|
601 | + self::$CHR[($code_point & 0x3F) + 0x80]; |
|
602 | 602 | } |
603 | 603 | |
604 | 604 | if ($encoding !== 'UTF-8') { |
@@ -2292,10 +2292,10 @@ discard block |
||
2292 | 2292 | public static function get_unique_string($entropy_extra = '', bool $use_md5 = true): string |
2293 | 2293 | { |
2294 | 2294 | $unique_helper = \random_int(0, \mt_getrandmax()) . |
2295 | - \session_id() . |
|
2296 | - ($_SERVER['REMOTE_ADDR'] ?? '') . |
|
2297 | - ($_SERVER['SERVER_ADDR'] ?? '') . |
|
2298 | - $entropy_extra; |
|
2295 | + \session_id() . |
|
2296 | + ($_SERVER['REMOTE_ADDR'] ?? '') . |
|
2297 | + ($_SERVER['SERVER_ADDR'] ?? '') . |
|
2298 | + $entropy_extra; |
|
2299 | 2299 | |
2300 | 2300 | $unique_string = \uniqid($unique_helper, true); |
2301 | 2301 | |
@@ -5803,8 +5803,8 @@ discard block |
||
5803 | 5803 | |
5804 | 5804 | /** @noinspection UnnecessaryCastingInspection */ |
5805 | 5805 | return (string) \mb_substr($str, 0, $index) . |
5806 | - $substring . |
|
5807 | - (string) \mb_substr($str, $index, $len); |
|
5806 | + $substring . |
|
5807 | + (string) \mb_substr($str, $index, $len); |
|
5808 | 5808 | } |
5809 | 5809 | |
5810 | 5810 | $encoding = self::normalize_encoding($encoding, 'UTF-8'); |
@@ -5815,8 +5815,8 @@ discard block |
||
5815 | 5815 | } |
5816 | 5816 | |
5817 | 5817 | return ((string) self::substr($str, 0, $index, $encoding)) . |
5818 | - $substring . |
|
5819 | - ((string) self::substr($str, $index, $len, $encoding)); |
|
5818 | + $substring . |
|
5819 | + ((string) self::substr($str, $index, $len, $encoding)); |
|
5820 | 5820 | } |
5821 | 5821 | |
5822 | 5822 | /** |
@@ -7849,11 +7849,11 @@ discard block |
||
7849 | 7849 | if ($use_mb_functions === true) { |
7850 | 7850 | if ($encoding === 'UTF-8') { |
7851 | 7851 | return \mb_strtoupper(\mb_substr($match[0], 0, 1)) |
7852 | - . \mb_strtolower(\mb_substr($match[0], 1)); |
|
7852 | + . \mb_strtolower(\mb_substr($match[0], 1)); |
|
7853 | 7853 | } |
7854 | 7854 | |
7855 | 7855 | return \mb_strtoupper(\mb_substr($match[0], 0, 1, $encoding), $encoding) |
7856 | - . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
7856 | + . \mb_strtolower(\mb_substr($match[0], 1, null, $encoding), $encoding); |
|
7857 | 7857 | } |
7858 | 7858 | |
7859 | 7859 | return self::ucfirst( |
@@ -8232,13 +8232,13 @@ discard block |
||
8232 | 8232 | } |
8233 | 8233 | |
8234 | 8234 | return ( |
8235 | - (string) self::substr( |
|
8236 | - $str, |
|
8237 | - 0, |
|
8238 | - $length, |
|
8239 | - $encoding |
|
8240 | - ) |
|
8241 | - ) . $substring; |
|
8235 | + (string) self::substr( |
|
8236 | + $str, |
|
8237 | + 0, |
|
8238 | + $length, |
|
8239 | + $encoding |
|
8240 | + ) |
|
8241 | + ) . $substring; |
|
8242 | 8242 | } |
8243 | 8243 | |
8244 | 8244 | /** |
@@ -11054,8 +11054,8 @@ discard block |
||
11054 | 11054 | |
11055 | 11055 | /** @noinspection AdditionOperationOnArraysInspection */ |
11056 | 11056 | return ((string) \mb_substr($str, 0, $offset, $encoding)) . |
11057 | - $replacement . |
|
11058 | - ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
11057 | + $replacement . |
|
11058 | + ((string) \mb_substr($str, $offset + $length, $string_length - $offset - $length, $encoding)); |
|
11059 | 11059 | } |
11060 | 11060 | |
11061 | 11061 | // |