Completed
Push — master ( a54e7f...fb0980 )
by Lars
03:21
created
src/voku/helper/UTF8.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1829,7 +1829,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.