Skip to content

Commit 596bb61

Browse files
authored
Fixed Merge Conflicts
1 parent 0cce72f commit 596bb61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,12 @@ public function setSettings($indexName, $indexNameTmp, $storeId, $saveToTmpIndic
452452
* Handle replicas
453453
*/
454454
$sortingIndices = $this->configHelper->getSortingIndices($indexName, $storeId);
455+
455456
$replicas = [];
456457

457458
if ($this->configHelper->isInstantEnabled($storeId)) {
458459
$replicas = array_values(array_map(function ($sortingIndex) {
459-
rreturn $sortingIndex['name'];
460+
return $sortingIndex['name'];
460461
}, $sortingIndices));
461462
}
462463

@@ -482,6 +483,7 @@ public function setSettings($indexName, $indexNameTmp, $storeId, $saveToTmpIndic
482483
$this->logger->log('Setting replicas to "' . $indexName . '" index.');
483484
$this->logger->log('Replicas: ' . json_encode($replicas));
484485
$setReplicasTaskId = $this->algoliaHelper->getLastTaskId();
486+
485487
if (!$this->configHelper->useVirtualReplica($storeId)) {
486488
foreach ($sortingIndices as $values) {
487489
$replicaName = $values['name'];
@@ -572,6 +574,7 @@ public function getObject(Product $product)
572574
);
573575

574576
$defaultData = $transport->getData();
577+
575578
$visibility = $product->getVisibility();
576579

577580
$visibleInCatalog = $this->visibility->getVisibleInCatalogIds();
@@ -1051,6 +1054,7 @@ protected function addAdditionalAttributes($customData, $additionalAttributes, P
10511054
}
10521055

10531056
$attributeResource = $attributeResource->setData('store_id', $product->getStoreId());
1057+
10541058
$value = $product->getData($attributeName);
10551059

10561060
if ($value !== null) {
@@ -1553,7 +1557,7 @@ public function handlingReplica($indexName, $storeId, $sortingAttribute = false)
15531557
}, $sortingIndices));
15541558
try {
15551559
if ($this->configHelper->useVirtualReplica($storeId)) {
1556-
$replicas = $this->handleVirtualReplica($replicas, $indexName);
1560+
$replicas = $this->handleVirtualReplica($replicas, $indexName);
15571561
}
15581562
$currentSettings = $this->algoliaHelper->getSettings($indexName);
15591563
if (is_array($currentSettings) && array_key_exists('replicas', $currentSettings)) {

0 commit comments

Comments
 (0)