Plugin/CustomerEmailNotificationPlugin.php
private function getWebsiteStoreId($customer, $defaultStoreId = null)
    {
        if ($customer->getWebsiteId() != 0 && empty($defaultStoreId)) {
            $storeIds = $this->storeManager->getWebsite($customer->getWebsiteId())->getStoreIds();
            $defaultStoreId = reset($storeIds);
        }
        return $defaultStoreId;
    }
private function getWebsiteStoreId($customer, $defaultStoreId = null)
    {
        if ($customer->getWebsiteId() != 0 && empty($defaultStoreId)) {
            $storeIds = $this->storeManager->getWebsite($customer->getWebsiteId())->getStoreIds();
            $defaultStoreId = reset($storeIds);
        }
        return $defaultStoreId;
    }
private function getWebsiteStoreId ( $ customer , $ defaultStoreId = null ) { if ( $ customer -> getWebsiteId ( ) != 0 && empty ( $ defaultStoreId ) ) { $ storeIds = $ this -> storeManager -> getWebsite ( $ customer -> getWebsiteId ( ) ) -> getStoreIds ( ) ; $ defaultStoreId = reset ( $ storeIds ) ; } return $ defaultStoreId ; }
Get either first store ID from a set website or the provided as default

@param \Magento\Customer\Api\Data\CustomerInterface $customer
@param int|string|null $defaultStoreId
@return int
Get either first store ID from a set website or the provided as default