Skip to content

Commit

Permalink
Unplugged 840 | Remove Laminas library encode (#270)
Browse files Browse the repository at this point in the history
* Remove Laminas library encode
  • Loading branch information
frobs committed May 11, 2023
1 parent 84b0593 commit 8d88624
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Integration/CreateStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private function setCustomAttributes()
];
}

$customAttributes = \Laminas\Json\Json::encode($attributes);
$customAttributes = json_encode($attributes);
$this->storeConfig->setCustomAttributes($customAttributes);
}

Expand Down
6 changes: 3 additions & 3 deletions Cron/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private function createProducts($store, $indice)
if (count($items)) {
try {
$this->logger->debug('[CreateInBulk]');
$this->logger->debug(\Laminas\Json\Json::encode($items));
$this->logger->debug(json_encode($items));
$this->itemHelper->createItemsInBulk($items, $store, $indice);
} catch (\Exception $e) {
$this->logger->error(
Expand Down Expand Up @@ -136,7 +136,7 @@ private function updateProducts($store, $indice)
if (count($items)) {
try {
$this->logger->debug('[UpdateInBulk]');
$this->logger->debug(\Laminas\Json\Json::encode($items));
$this->logger->debug(json_encode($items));
$this->itemHelper->updateItemsInBulk($items, $store, $indice);
} catch (\Exception $e) {
$this->logger->error(
Expand Down Expand Up @@ -164,7 +164,7 @@ private function deleteProducts($store, $indice)
if (count($items)) {
try {
$this->logger->debug('[DeleteInBulk]');
$this->logger->debug(\Laminas\Json\Json::encode($items));
$this->logger->debug(json_encode($items));
$this->itemHelper->deleteItemsInBulk($items, $store, $indice);
} catch (\Exception $e) {
$this->logger->error(
Expand Down
2 changes: 1 addition & 1 deletion Helper/StoreConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ public function getIndexationStatus(int $storeId): array {
*/
public function setIndexationStatus(array $status, int $storeId){
$status = $this->indexationHelper->sanitizeProcessTaskStatus($status);
$status = \Laminas\Json\Json::encode($status);
$status = json_encode($status);
$this->configWriter->save(self::INDEXATION_STATUS, $status, ScopeInterface::SCOPE_STORES, $storeId);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder/doofinder-magento2",
"version": "0.10.5",
"version": "0.10.6",
"description": "Doofinder module for Magento 2",
"type": "magento2-module",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Doofinder_Feed" setup_version="0.10.5">
<module name="Doofinder_Feed" setup_version="0.10.6">
<sequence>
<module name="Magento_Integration" />
</sequence>
Expand Down

0 comments on commit 8d88624

Please sign in to comment.