From 7774d4a2e60cbd1b057f10761c8ee8fb0492325a Mon Sep 17 00:00:00 2001 From: Pieter Hoste Date: Tue, 31 Dec 2024 14:28:43 +0100 Subject: [PATCH] Fixed static tests. --- .../Model/Product/TypeHandler/Link.php | 37 ++++++++----------- .../ResourceModel/Entity/Attribute/Group.php | 8 ++-- .../Magento/Store/Block/Store/Switcher.php | 20 ++++++---- .../Magento/Framework/HTTP/Client/Socket.php | 4 +- 4 files changed, 35 insertions(+), 34 deletions(-) diff --git a/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php b/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php index 4dfa9c875b6b..9eb4dd184adb 100644 --- a/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php +++ b/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php @@ -1,7 +1,7 @@ getLinksPurchasedSeparately()) { $product->setIsCustomOptionChanged(); } + + return $this; } /** - * {@inheritdoc} + * @inheritdoc */ protected function clear() { @@ -86,7 +88,7 @@ protected function clear() } /** - * @return ComponentInterface + * @inheritdoc */ protected function createItem() { @@ -94,10 +96,7 @@ protected function createItem() } /** - * @param ComponentInterface $model - * @param array $data - * @param Product $product - * @return void + * @inheritdoc */ protected function setDataToModel(ComponentInterface $model, array $data, Product $product) { @@ -125,9 +124,7 @@ protected function setDataToModel(ComponentInterface $model, array $data, Produc } /** - * @param ComponentInterface $model - * @param Product $product - * @return void + * @inheritdoc */ protected function linkToProduct(ComponentInterface $model, Product $product) { @@ -135,7 +132,7 @@ protected function linkToProduct(ComponentInterface $model, Product $product) } /** - * @return void + * @inheritdoc */ protected function processDelete() { @@ -145,7 +142,7 @@ protected function processDelete() } /** - * {@inheritdoc} + * @inheritdoc */ protected function saveItem(Product $product, array $item) { @@ -157,9 +154,7 @@ protected function saveItem(Product $product, array $item) } /** - * @param ComponentInterface $model - * @param array $files - * @return void + * @inheritdoc */ protected function setFiles(ComponentInterface $model, array $files) { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Group.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Group.php index bdbefb0f474e..ee065e58344c 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Group.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Group.php @@ -1,7 +1,7 @@