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

@@ -160,7 +160,8 @@ class Export {
// sorted by segment name (due to slow queries when using ORDER BY and LIMIT),
// we need to keep track of processed segments so that we do not create header
// multiple times when switching from one segment to another and back.
if ((!count($processedSegments) || $lastSegment !== $currentSegment) &&
if (
(!count($processedSegments) || $lastSegment !== $currentSegment) &&
(!in_array($lastSegment, $processedSegments) || !in_array($currentSegment, $processedSegments))
) {
$this->writeXLSX(
@@ -173,7 +174,8 @@ class Export {
$lastSegment = ucwords($subscriber['segment_name']);
// detect RTL language and set Excel to properly display the sheet
$rTLRegex = '/\p{Arabic}|\p{Hebrew}/u';
if (!$xLSXWriter->rtl && (
if (
!$xLSXWriter->rtl && (
preg_grep($rTLRegex, $subscriber) ||
preg_grep($rTLRegex, $this->formattedSubscriberFieldsWithList))
) {