updated composer

This commit is contained in:
2021-05-18 13:47:03 +00:00
parent e248cd036c
commit ba92152daa
1187 changed files with 20804 additions and 22320 deletions

View File

@@ -21,7 +21,7 @@ class QpEncoder implements EncoderInterface
/**
* Pre-computed QP for HUGE optimization.
*/
private static $qpMap = [
private const QP_MAP = [
0 => '=00', 1 => '=01', 2 => '=02', 3 => '=03', 4 => '=04',
5 => '=05', 6 => '=06', 7 => '=07', 8 => '=08', 9 => '=09',
10 => '=0A', 11 => '=0B', 12 => '=0C', 13 => '=0D', 14 => '=0E',
@@ -170,7 +170,7 @@ class QpEncoder implements EncoderInterface
$ret .= $this->safeMap[$b];
++$size;
} else {
$ret .= self::$qpMap[$b];
$ret .= self::QP_MAP[$b];
$size += 3;
}
}
@@ -187,7 +187,7 @@ class QpEncoder implements EncoderInterface
switch ($end = \ord(substr($string, -1))) {
case 0x09:
case 0x20:
$string = substr_replace($string, self::$qpMap[$end], -1);
$string = substr_replace($string, self::QP_MAP[$end], -1);
}
return $string;