| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 45 | public function execute(Observer $observer) | ||
| 46 |     { | ||
| 47 |         if (!$this->configHelper->isEnabled() || !$this->configHelper->isCustomerExportEnabled()) { | ||
| 48 | return; | ||
| 49 | } | ||
| 50 | |||
| 51 | /** @var MagentoCustomer $magentoCustomer */ | ||
| 52 |         $magentoCustomer = $observer->getEvent()->getData('customer'); | ||
| 53 | |||
| 54 | $this->publisher->publish( | ||
| 55 | Topics::CUSTOMER_CUSTOMER_EXPORT, | ||
| 56 | json_encode(['magento_customer_id' => $magentoCustomer->getId()]) | ||
|  | |||
| 57 | ); | ||
| 60 |