Completed
Push — master ( 9e59ef...a54e7f )
by Lars
06:40
created
src/voku/helper/UTF8.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1965,7 +1965,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
    * @param int    $start
1224 1224
    * @param int    $len
1225 1225
    *
1226
-   * @return int|null
1226
+   * @return integer
1227 1227
    */
1228 1228
   public static function strspn($s, $mask, $start = 0, $len = 2147483647)
1229 1229
   {
@@ -2623,7 +2623,7 @@  discard block
 block discarded – undo
2623 2623
    * @param string $encodingLabel ISO-8859-1 || UTF-8
2624 2624
    * @param string $string
2625 2625
    *
2626
-   * @return false|string Will return false on error.
2626
+   * @return string Will return false on error.
2627 2627
    */
2628 2628
   public static function encode($encodingLabel, $string)
2629 2629
   {
Please login to merge, or discard this patch.
src/voku/helper/Bootup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.