@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | if (!preg_match('//u', urldecode($uri))) { |
| 90 | 90 | $uri = preg_replace_callback( |
| 91 | 91 | '/[\x80-\xFF]+/', |
| 92 | - function ($m) { |
|
| 92 | + function($m) { |
|
| 93 | 93 | return urlencode($m[0]); |
| 94 | 94 | }, |
| 95 | 95 | $uri |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | $uri = preg_replace_callback( |
| 99 | 99 | '/(?:%[89A-F][0-9A-F])+/i', |
| 100 | - function ($m) { |
|
| 100 | + function($m) { |
|
| 101 | 101 | return urlencode(UTF8::encode('UTF-8', urldecode($m[0]))); |
| 102 | 102 | }, |
| 103 | 103 | $uri |
@@ -1829,7 +1829,7 @@ discard block |
||
| 1829 | 1829 | |
| 1830 | 1830 | $strSwappedCase = preg_replace_callback( |
| 1831 | 1831 | '/[\S]/u', |
| 1832 | - function ($match) use ($encoding) { |
|
| 1832 | + function($match) use ($encoding) { |
|
| 1833 | 1833 | $marchToUpper = self::strtoupper($match[0], $encoding); |
| 1834 | 1834 | |
| 1835 | 1835 | if ($match[0] == $marchToUpper) { |
@@ -2124,7 +2124,7 @@ discard block |
||
| 2124 | 2124 | // decode unicode escape sequences |
| 2125 | 2125 | $buf = preg_replace_callback( |
| 2126 | 2126 | '/\\\\u([0-9a-f]{4})/i', |
| 2127 | - function ($match) { |
|
| 2127 | + function($match) { |
|
| 2128 | 2128 | return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); |
| 2129 | 2129 | }, |
| 2130 | 2130 | $buf |
@@ -2133,7 +2133,7 @@ discard block |
||
| 2133 | 2133 | // decode UTF-8 codepoints |
| 2134 | 2134 | $buf = preg_replace_callback( |
| 2135 | 2135 | '/&#\d{2,4};/', |
| 2136 | - function ($match) { |
|
| 2136 | + function($match) { |
|
| 2137 | 2137 | return mb_convert_encoding($match[0], 'UTF-8', 'HTML-ENTITIES'); |
| 2138 | 2138 | }, |
| 2139 | 2139 | $buf |
@@ -1703,7 +1703,7 @@ discard block |
||
| 1703 | 1703 | * @param string $encodingLabel ISO-8859-1 || UTF-8 |
| 1704 | 1704 | * @param string $str |
| 1705 | 1705 | * |
| 1706 | - * @return false|string Will return false on error. |
|
| 1706 | + * @return string Will return false on error. |
|
| 1707 | 1707 | */ |
| 1708 | 1708 | public static function encode($encodingLabel, $str) |
| 1709 | 1709 | { |
@@ -4843,7 +4843,7 @@ discard block |
||
| 4843 | 4843 | * @param int $start |
| 4844 | 4844 | * @param int $len |
| 4845 | 4845 | * |
| 4846 | - * @return int|null |
|
| 4846 | + * @return integer |
|
| 4847 | 4847 | */ |
| 4848 | 4848 | public static function strspn($s, $mask, $start = 0, $len = 2147483647) |
| 4849 | 4849 | { |