Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function execute(Observer $observer) |
||
45 | { |
||
46 | if (!$this->configHelper->isApiEnabled()) { |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | /** @var Subscriber $subscriber */ |
||
51 | $subscriber = $observer->getEvent()->getData('subscriber'); |
||
52 | |||
53 | if ($subscriber->getData('customer_id')) { |
||
54 | return; |
||
55 | } |
||
56 | |||
57 | $this->exportContactService->exportWithSubscriber($subscriber); |
||
58 | } |
||
60 |