@@ -1965,7 +1965,7 @@ discard block |
||
| 1965 | 1965 | // decode unicode escape sequences |
| 1966 | 1966 | $buf = preg_replace_callback( |
| 1967 | 1967 | '/\\\\u([0-9a-f]{4})/i', |
| 1968 | - function ($match) { |
|
| 1968 | + function($match) { |
|
| 1969 | 1969 | return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); |
| 1970 | 1970 | }, |
| 1971 | 1971 | $buf |
@@ -1974,7 +1974,7 @@ discard block |
||
| 1974 | 1974 | // decode UTF-8 codepoints |
| 1975 | 1975 | $buf = preg_replace_callback( |
| 1976 | 1976 | '/&#\d{2,4};/', |
| 1977 | - function ($match) { |
|
| 1977 | + function($match) { |
|
| 1978 | 1978 | return mb_convert_encoding($match[0], 'UTF-8', 'HTML-ENTITIES'); |
| 1979 | 1979 | }, |
| 1980 | 1980 | $buf |
@@ -1203,7 +1203,7 @@ discard block |
||
| 1203 | 1203 | * @param int $start |
| 1204 | 1204 | * @param int $len |
| 1205 | 1205 | * |
| 1206 | - * @return int|null |
|
| 1206 | + * @return integer |
|
| 1207 | 1207 | */ |
| 1208 | 1208 | public static function strspn($s, $mask, $start = 0, $len = 2147483647) |
| 1209 | 1209 | { |
@@ -2176,7 +2176,7 @@ discard block |
||
| 2176 | 2176 | * |
| 2177 | 2177 | * @param string $str |
| 2178 | 2178 | * |
| 2179 | - * @return bool|string false if we can't detect the string-encoding |
|
| 2179 | + * @return string|false false if we can't detect the string-encoding |
|
| 2180 | 2180 | */ |
| 2181 | 2181 | public static function str_detect_encoding($str) |
| 2182 | 2182 | { |