mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix coding standard error
This commit is contained in:
parent
f8d602cd7b
commit
1e50ead75b
1 changed files with 3 additions and 1 deletions
|
@ -753,7 +753,8 @@ class Multibyte {
|
|||
if ($charset == 'UTF-8') {
|
||||
$parts = array();
|
||||
$maxchars = floor(($length * 3) / 4);
|
||||
while (strlen($string) > $maxchars) {
|
||||
$strlen = strlen($string);
|
||||
while ($strlen > $maxchars) {
|
||||
$i = (int)$maxchars;
|
||||
$test = ord($string[$i]);
|
||||
while ($test >= 128 && $test <= 191) {
|
||||
|
@ -762,6 +763,7 @@ class Multibyte {
|
|||
}
|
||||
$parts[] = base64_encode(substr($string, 0, $i));
|
||||
$string = substr($string, $i);
|
||||
$strlen = strlen($string);
|
||||
}
|
||||
$parts[] = base64_encode($string);
|
||||
$string = implode($spacer, $parts);
|
||||
|
|
Loading…
Reference in a new issue