diff --git a/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php b/app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php index 6d567605f8b85..9eb4dd184adb8 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() { $this->sampleItem = []; - return parent::clear(); + + parent::clear(); } /** - * @return ComponentInterface + * @inheritdoc */ protected function createItem() { @@ -93,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) { @@ -124,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) { @@ -134,7 +132,7 @@ protected function linkToProduct(ComponentInterface $model, Product $product) } /** - * @return void + * @inheritdoc */ protected function processDelete() { @@ -144,7 +142,7 @@ protected function processDelete() } /** - * {@inheritdoc} + * @inheritdoc */ protected function saveItem(Product $product, array $item) { @@ -156,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 90c21bebc8db7..1ac6881d223a2 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 @@ _loadData(); $this->setStores([]); $this->setLanguages([]); - return parent::_construct(); + + parent::_construct(); } /** + * Load data + * * @return $this */ protected function _loadData() @@ -104,6 +103,8 @@ protected function _loadData() } /** + * Sets stores and returns their count + * * @return int */ public function getStoreCount() @@ -134,6 +135,8 @@ public function getStoreCount() } /** + * Sets languages and returns their count + * * @return int */ public function getLanguageCount() @@ -148,6 +151,8 @@ public function getLanguageCount() } /** + * Returns current store id + * * @return int */ public function getCurrentStoreId() @@ -156,6 +161,8 @@ public function getCurrentStoreId() } /** + * Returns current store code + * * @return string */ public function getCurrentStoreCode() diff --git a/lib/internal/Magento/Framework/HTTP/Client/Socket.php b/lib/internal/Magento/Framework/HTTP/Client/Socket.php index f0261e397ea88..21ee9bd325b42 100644 --- a/lib/internal/Magento/Framework/HTTP/Client/Socket.php +++ b/lib/internal/Magento/Framework/HTTP/Client/Socket.php @@ -1,7 +1,7 @@ doError("Invalid response line returned from server: " . $responseLine); + $this->doError("Invalid response line returned from server: " . $responseLine); } $this->_responseStatus = (int)$line[1]; $this->processResponseHeaders(); @@ -466,8 +465,7 @@ protected function makeRequest($method, $uri, $params = []) $errno = $errstr = ''; $this->_sock = @fsockopen($this->_host, $this->_port, $errno, $errstr, $this->_timeout); if (!$this->_sock) { - // phpstan:ignore "Result of method Magento\Framework\HTTP\Client\Socket::doError() (void) is used." - return $this->doError(sprintf("[errno: %d] %s", $errno, $errstr)); + $this->doError(sprintf("[errno: %d] %s", $errno, $errstr)); } $crlf = "\r\n";