From 9ba579d07f2e2417cd57251c677e5f0a189e9a29 Mon Sep 17 00:00:00 2001 From: Avikarsha Saha Date: Thu, 20 Jun 2024 13:04:15 +0530 Subject: [PATCH] split lines --- EventListener/TokenSubscriber.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/EventListener/TokenSubscriber.php b/EventListener/TokenSubscriber.php index 85ed57dc2..be336707f 100644 --- a/EventListener/TokenSubscriber.php +++ b/EventListener/TokenSubscriber.php @@ -428,11 +428,15 @@ private function getCustomFieldDataForLead(array $filters, int $leadId): array } if ('cmf_' === substr($condition['field'], 0, 4)) { - $customField = $this->customFieldModel->fetchEntity((int) explode('cmf_', $condition['field'])[1]); + $customField = $this->customFieldModel->fetchEntity( + (int) explode('cmf_', $condition['field'])[1] + ); $customObject = $customField->getCustomObject(); $fieldAlias = $customField->getAlias(); } elseif ('cmo_' === substr($condition['field'], 0, 4)) { - $customObject = $this->customObjectModel->fetchEntity((int) explode('cmo_', $condition['field'])[1]); + $customObject = $this->customObjectModel->fetchEntity( + (int) explode('cmo_', $condition['field'])[1] + ); $fieldAlias = 'name'; } else { continue;