autofixes

This commit is contained in:
Dennis Eichhorn 2020-04-13 10:44:10 +02:00
parent 2c9d8fe6aa
commit c003aae57f

View File

@ -1114,7 +1114,7 @@ class Mail
$matches += \preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $value, $matched);
}
$charset = ((bool) preg_match('/[\x80-\xFF]/', $value)) ? $this->charset : CharsetType::ASCII;
$charset = ((bool) \preg_match('/[\x80-\xFF]/', $value)) ? $this->charset : CharsetType::ASCII;
$overhead = \strlen($charset) + 8;
$maxlength = $this->submitType === SubmitType::MAIL ? 63 - $overhead : 998 - $overhead;