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

@@ -91,9 +91,10 @@ class Text {
false;
// if previous or next paragraphs are empty OR previous paragraph
// is a heading, insert a break line
if (!$nextElement ||
!$previousElement ||
(preg_match('/h\d+/', $previousElementTag))
if (
!$nextElement ||
!$previousElement ||
(preg_match('/h\d+/', $previousElementTag))
) {
$paragraph = $this->insertLineBreak($paragraph);
}