@@ -427,7 +427,7 @@ public static function mb_encoding_aliases($encoding)
427
427
428
428
public static function mb_check_encoding ($ var = null , $ encoding = null )
429
429
{
430
- if (PHP_VERSION_ID < 70200 && \is_array ($ var )) {
430
+ if (\ PHP_VERSION_ID < 70200 && \is_array ($ var )) {
431
431
trigger_error ('mb_check_encoding() expects parameter 1 to be string, array given ' , \E_USER_WARNING );
432
432
433
433
return null ;
@@ -454,7 +454,6 @@ public static function mb_check_encoding($var = null, $encoding = null)
454
454
}
455
455
456
456
return true ;
457
-
458
457
}
459
458
460
459
public static function mb_detect_encoding ($ str , $ encodingList = null , $ strict = false )
@@ -888,9 +887,9 @@ public static function mb_ucfirst(string $string, ?string $encoding = null): str
888
887
}
889
888
890
889
$ firstChar = mb_substr ($ string , 0 , 1 , $ encoding );
891
- $ firstChar = mb_convert_case ($ firstChar , MB_CASE_TITLE , $ encoding );
890
+ $ firstChar = mb_convert_case ($ firstChar , \ MB_CASE_TITLE , $ encoding );
892
891
893
- return $ firstChar . mb_substr ($ string , 1 , null , $ encoding );
892
+ return $ firstChar. mb_substr ($ string , 1 , null , $ encoding );
894
893
}
895
894
896
895
public static function mb_lcfirst (string $ string , ?string $ encoding = null ): string
@@ -902,9 +901,9 @@ public static function mb_lcfirst(string $string, ?string $encoding = null): str
902
901
}
903
902
904
903
$ firstChar = mb_substr ($ string , 0 , 1 , $ encoding );
905
- $ firstChar = mb_convert_case ($ firstChar , MB_CASE_LOWER , $ encoding );
904
+ $ firstChar = mb_convert_case ($ firstChar , \ MB_CASE_LOWER , $ encoding );
906
905
907
- return $ firstChar . mb_substr ($ string , 1 , null , $ encoding );
906
+ return $ firstChar. mb_substr ($ string , 1 , null , $ encoding );
908
907
}
909
908
910
909
private static function getSubpart ($ pos , $ part , $ haystack , $ encoding )
0 commit comments