Skip to content

Commit

Permalink
Fixed static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hostep committed Jan 2, 2025
1 parent c337f10 commit 7774d4a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 deletions.
37 changes: 16 additions & 21 deletions app/code/Magento/Downloadable/Model/Product/TypeHandler/Link.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
namespace Magento\Downloadable\Model\Product\TypeHandler;

Expand All @@ -10,7 +10,6 @@
use Magento\Downloadable\Model\ComponentInterface;

/**
* Class Link
* @api
* @since 100.0.2
*/
Expand All @@ -22,7 +21,7 @@ class Link extends AbstractTypeHandler
private $sampleItem = [];

/**
* @var \Magento\Downloadable\Model\ComponentInterfaceFactory
* @var \Magento\Downloadable\Model\LinkFactory
*/
private $linkFactory;

Expand All @@ -49,34 +48,37 @@ public function __construct(
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getDataKey()
{
return 'link';
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getIdentifierKey()
{
return 'link_id';
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function save(Product $product, array $data)
{
parent::save($product, $data);

if ($product->getLinksPurchasedSeparately()) {
$product->setIsCustomOptionChanged();
}

return $this;
}

/**
* {@inheritdoc}
* @inheritdoc
*/
protected function clear()
{
Expand All @@ -86,18 +88,15 @@ protected function clear()
}

/**
* @return ComponentInterface
* @inheritdoc
*/
protected function createItem()
{
return $this->linkFactory->create();
}

/**
* @param ComponentInterface $model
* @param array $data
* @param Product $product
* @return void
* @inheritdoc
*/
protected function setDataToModel(ComponentInterface $model, array $data, Product $product)
{
Expand Down Expand Up @@ -125,17 +124,15 @@ protected function setDataToModel(ComponentInterface $model, array $data, Produc
}

/**
* @param ComponentInterface $model
* @param Product $product
* @return void
* @inheritdoc
*/
protected function linkToProduct(ComponentInterface $model, Product $product)
{
$product->setLastAddedLinkId($model->getId());
}

/**
* @return void
* @inheritdoc
*/
protected function processDelete()
{
Expand All @@ -145,7 +142,7 @@ protected function processDelete()
}

/**
* {@inheritdoc}
* @inheritdoc
*/
protected function saveItem(Product $product, array $item)
{
Expand All @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2015 Adobe
* All Rights Reserved.
*/
namespace Magento\Eav\Model\ResourceModel\Entity\Attribute;

Expand Down Expand Up @@ -156,7 +156,7 @@ public function updateDefaultGroup($attributeSetId)
}

/**
* {@inheritdoc}
* @inheritdoc
*/
protected function saveNewObject(AbstractModel $object)
{
Expand All @@ -173,7 +173,7 @@ protected function saveNewObject(AbstractModel $object)
}

/**
* {@inheritdoc}
* @inheritdoc
*/
protected function updateObject(AbstractModel $object)
{
Expand Down
20 changes: 13 additions & 7 deletions app/code/Magento/Store/Block/Store/Switcher.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2014 Adobe
* All Rights Reserved.
*/

/**
Expand Down Expand Up @@ -29,15 +29,11 @@ class Switcher extends \Magento\Framework\View\Element\Template
protected $_loaded = false;

/**
* Store factory
*
* @var \Magento\Store\Model\StoreFactory
*/
protected $_storeFactory;

/**
* Store group factory
*
* @var \Magento\Store\Model\GroupFactory
*/
protected $_storeGroupFactory;
Expand All @@ -60,7 +56,7 @@ public function __construct(
}

/**
* @return void
* @inheritdoc
*/
protected function _construct()
{
Expand All @@ -72,6 +68,8 @@ protected function _construct()
}

/**
* Load data
*
* @return $this
*/
protected function _loadData()
Expand Down Expand Up @@ -105,6 +103,8 @@ protected function _loadData()
}

/**
* Sets stores and returns their count
*
* @return int
*/
public function getStoreCount()
Expand Down Expand Up @@ -135,6 +135,8 @@ public function getStoreCount()
}

/**
* Sets languages and returns their count
*
* @return int
*/
public function getLanguageCount()
Expand All @@ -149,6 +151,8 @@ public function getLanguageCount()
}

/**
* Returns current store id
*
* @return int
*/
public function getCurrentStoreId()
Expand All @@ -157,6 +161,8 @@ public function getCurrentStoreId()
}

/**
* Returns current store code
*
* @return string
*/
public function getCurrentStoreCode()
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/HTTP/Client/Socket.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2014 Adobe
* All Rights Reserved.
*/

/**
Expand Down

0 comments on commit 7774d4a

Please sign in to comment.