Skip to content

Commit 9f19463

Browse files
Fix CS
1 parent 2ebfe5a commit 9f19463

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Mbstring.php

+12-6
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public static function mb_encode_mimeheader($s, $charset = null, $transferEncodi
141141
public static function mb_decode_numericentity($s, $convmap, $encoding = null)
142142
{
143143
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
144-
trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING);
144+
trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
145+
145146
return null;
146147
}
147148

@@ -150,7 +151,8 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
150151
}
151152

152153
if (null !== $encoding && !\is_scalar($encoding)) {
153-
trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING);
154+
trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
155+
154156
return ''; // Instead of null (cf. mb_encode_numericentity).
155157
}
156158

@@ -185,6 +187,7 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
185187
return Mbstring::mb_chr($c - $convmap[$i + 2]);
186188
}
187189
}
190+
188191
return $m[0];
189192
}, $s);
190193

@@ -198,7 +201,8 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
198201
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
199202
{
200203
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
201-
trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.gettype($s).' given', E_USER_WARNING);
204+
trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
205+
202206
return null;
203207
}
204208

@@ -207,12 +211,14 @@ public static function mb_encode_numericentity($s, $convmap, $encoding = null, $
207211
}
208212

209213
if (null !== $encoding && !\is_scalar($encoding)) {
210-
trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.gettype($s).' given', E_USER_WARNING);
214+
trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
215+
211216
return null; // Instead of '' (cf. mb_decode_numericentity).
212217
}
213218

214219
if (null !== $is_hex && !\is_scalar($is_hex)) {
215-
trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.gettype($s).' given', E_USER_WARNING);
220+
trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
221+
216222
return null;
217223
}
218224

@@ -327,7 +333,7 @@ public static function mb_convert_case($s, $mode, $encoding = null)
327333
} else {
328334
$s = substr_replace($s, $uchr, $i - $ulen, $ulen);
329335
$len += $nlen - $ulen;
330-
$i += $nlen - $ulen;
336+
$i += $nlen - $ulen;
331337
}
332338
}
333339
}

Resources/unidata/lowerCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@
10951095
'𑢿' => '𑣟',
10961096
);
10971097

1098-
$result =& $data;
1098+
$result = &$data;
10991099
unset($data);
11001100

11011101
return $result;

Resources/unidata/upperCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@
11031103
'𑣟' => '𑢿',
11041104
);
11051105

1106-
$result =& $data;
1106+
$result = &$data;
11071107
unset($data);
11081108

11091109
return $result;

0 commit comments

Comments
 (0)