From 0db992c03787ae67002498dfa5a6763724194695 Mon Sep 17 00:00:00 2001 From: haukestenzel Date: Mon, 20 Nov 2023 16:50:50 +0100 Subject: [PATCH] spry-2561 Refactor extendQueryData method in ProductReader class. --- .../ProductFirstSpiritApi/Business/Reader/ProductReader.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ValanticSpryker/Zed/ProductFirstSpiritApi/Business/Reader/ProductReader.php b/src/ValanticSpryker/Zed/ProductFirstSpiritApi/Business/Reader/ProductReader.php index d89a7b2..dba3670 100644 --- a/src/ValanticSpryker/Zed/ProductFirstSpiritApi/Business/Reader/ProductReader.php +++ b/src/ValanticSpryker/Zed/ProductFirstSpiritApi/Business/Reader/ProductReader.php @@ -199,9 +199,7 @@ protected function adjustQueryData($queryData): array $queryData[self::KEY_PRODUCTS_PER_PAGE] = $this->firstSpiritApiConfig->getPagingSize(); $queryData = $this->replaceOldArrayKeyWithNewArrayKey($queryData, self::CATEGORY_ID, self::CATEGORY); - $this->extendQueryData($queryData); - - return $queryData; + return $this->extendQueryData($queryData); } /**