From 11b5f978644b3cae48faa110ed8128a367c582b5 Mon Sep 17 00:00:00 2001 From: Janusz Witrykus Date: Fri, 29 Dec 2017 09:48:22 +0100 Subject: [PATCH] Reverse condition $this->isFeaturesEnabled to !$this->isFeaturesEnabled --- .../Provider/TrackingVisitEventProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php b/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php index 5472c7d93da..ec073b9a112 100644 --- a/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php +++ b/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php @@ -33,7 +33,7 @@ public function __construct(ManagerRegistry $registry) */ public function getCustomerEventAggregates(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -63,7 +63,7 @@ public function getCustomerEventAggregates(array $customers, array $eventNames) */ public function getCustomerEventsCountByDate(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -84,7 +84,7 @@ public function getCustomerEventsCountByDate(array $customers, array $eventNames */ public function getCustomerEventsCountByDateAndChannel(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -109,7 +109,7 @@ public function getCustomerEventsCountByDateAndChannel(array $customers, array $ */ public function getMostViewedPage(array $customers = []) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return null; } @@ -128,7 +128,7 @@ public function getMostViewedPage(array $customers = []) */ public function getLastViewedPage(array $customers = []) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return null; }