Skip to content

Commit 6482ae1

Browse files
committed
ACP2E-3165: [Cloud] Getting error while checking the data in import data using CSV
- Fixed the static test failure.
1 parent fc62e0c commit 6482ae1

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer

1 file changed

+2
-3
lines changed

app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer/Storage.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function loadCustomersData(array $customerIdentifiers): void
104104
};
105105
$offset = 0;
106106
for ($chunk = $getChuck($offset); !empty($chunk); $offset += $pageSize, $chunk = $getChuck($offset)) {
107-
$customerWebsites = array_reduce($chunk, function($customerWebsiteByEmail, $customer) {
107+
$customerWebsites = array_reduce($chunk, function ($customerWebsiteByEmail, $customer) {
108108
$customerWebsiteByEmail[$customer['email']][] = $customer['website_id'];
109109
return $customerWebsiteByEmail;
110110
});
@@ -114,8 +114,7 @@ private function loadCustomersData(array $customerIdentifiers): void
114114
$i = 0;
115115
foreach ($customers as $customer) {
116116
$this->addCustomerByArray($customer);
117-
if (
118-
$this->configShare->isGlobalScope() &&
117+
if ($this->configShare->isGlobalScope() &&
119118
!in_array((int) $customer['website_id'], $customerWebsites[$customer['email']], true)
120119
) {
121120
$customer['website_id'] = $customerWebsites[$customer['email']][$i];

0 commit comments

Comments
 (0)