Fix errors detected by updated PHPStan

[MAILPOET-4055]
This commit is contained in:
Jan Jakes
2022-03-08 15:34:03 +01:00
committed by Veljko V
parent 1bc004adce
commit ce3a8bed8c
3 changed files with 27 additions and 9 deletions

View File

@@ -143,7 +143,7 @@ class BlockRendererHelper {
$rules = [];
if (isset($formSettings['fontSize'])) {
$rules[] = 'font-size: ' . trim($formSettings['fontSize']) . 'px;';
$rules[] = 'line-height: ' . trim($formSettings['fontSize']) * 1.2 . 'px";';
$rules[] = 'line-height: ' . (float)trim($formSettings['fontSize']) * 1.2 . 'px";';
}
if (isset($styles['bold'])) {
$rules[] = 'font-weight: bold;';