From 8b06218f2462219a8509bee7dc3d510ad4fac6a6 Mon Sep 17 00:00:00 2001 From: ah-net <103565001+ah-net@users.noreply.github.com> Date: Wed, 5 Mar 2025 16:48:02 +0100 Subject: [PATCH] Style fixes --- Model/Config.php | 5 ++++- Model/Write/Products/CollectionDecorator/Children.php | 1 - Model/Write/Products/ExportEntity.php | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Model/Config.php b/Model/Config.php index 6714f7f..b63cc23 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -311,6 +311,9 @@ public function getBatchSizeProductsChildren(): int */ public function isGroupedExport(StoreInterface $store = null): bool { - return (bool) $this->config->getValue('tweakwise/export/grouped_export_enabled', ScopeInterface::SCOPE_STORE, $store); + return (bool) $this->config->getValue( + 'tweakwise/export/grouped_export_enabled', + ScopeInterface::SCOPE_STORE, $store + ); } } diff --git a/Model/Write/Products/CollectionDecorator/Children.php b/Model/Write/Products/CollectionDecorator/Children.php index 8f51914..0b8500b 100644 --- a/Model/Write/Products/CollectionDecorator/Children.php +++ b/Model/Write/Products/CollectionDecorator/Children.php @@ -338,7 +338,6 @@ protected function addChild( $childEntity->addCategoryId($category); } } - } catch (InvalidArgumentException $exception) { // no implementation, parent was not found } diff --git a/Model/Write/Products/ExportEntity.php b/Model/Write/Products/ExportEntity.php index 2cacb36..384465f 100644 --- a/Model/Write/Products/ExportEntity.php +++ b/Model/Write/Products/ExportEntity.php @@ -425,6 +425,7 @@ protected function shouldExportByVisibility(): bool if ($this->config->isGroupedExport($this->store)) { return true; } + return \in_array($this->getVisibility(), $this->visibilityObject->getVisibleInSiteIds(), true); }