Fix code style by updated ruleset

[MAILPOET-3912]
This commit is contained in:
Jan Lysý
2021-12-20 15:13:17 +01:00
committed by Veljko V
parent c0302d8284
commit 09c2ce653c
55 changed files with 201 additions and 133 deletions

View File

@@ -119,8 +119,10 @@ class BlockRendererHelper {
if (in_array($block['id'], ['email', 'last_name', 'first_name'], true)) {
$automationId = 'data-automation-id="form_' . $block['id'] . '_label" ';
}
if (isset($block['params']['label'])
&& strlen(trim($block['params']['label'])) > 0) {
if (
isset($block['params']['label'])
&& strlen(trim($block['params']['label'])) > 0
) {
$html .= '<label '
. 'class="mailpoet_' . $block['type'] . '_label" '
. $this->renderFontStyle($formSettings, $block['styles'] ?? [])