Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forbidden @author tag from Magento_Catalog (part 4) #36990

Open
wants to merge 7 commits into
base: 2.4-develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,23 @@
* See COPYING.txt for license details.
*/

/**
* Product image attribute frontend
*
* @author Magento Core Team <[email protected]>
*/

namespace Magento\Catalog\Model\Product\Attribute\Frontend;

use Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend;
use Magento\Framework\UrlInterface;
use Magento\Store\Model\StoreManagerInterface;

/**
* Product image attribute frontend
*/
class Image extends AbstractFrontend
{
/**
* Store manager
*
* @var StoreManagerInterface
*/
protected $_storeManager;

/**
* Construct
*
* @param StoreManagerInterface $storeManager
*/
public function __construct(StoreManagerInterface $storeManager)
Expand Down
3 changes: 0 additions & 3 deletions app/code/Magento/Catalog/Model/Product/Attribute/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@
class Group extends \Magento\Eav\Model\Entity\Attribute\Group
{
/**
* Attribute collection factory for Product
*
* @var \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory
*/
protected $_attributeCollectionFactory;

/**
* Group constructor.
* @param \Magento\Framework\Model\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
* @author Magento Core Team <[email protected]>
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
* See COPYING.txt for license details.
*/

/**
* Catalog product country attribute source
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Attribute\Source;

use Magento\Directory\Model\CountryFactory;
Expand All @@ -19,6 +14,9 @@
use Magento\Framework\Serialize\SerializerInterface;
use Magento\Store\Model\StoreManagerInterface;

/**
* Catalog product country attribute source
*/
class Countryofmanufacture extends AbstractSource implements OptionSourceInterface
{
/**
Expand Down Expand Up @@ -47,8 +45,6 @@ class Countryofmanufacture extends AbstractSource implements OptionSourceInterfa
private $localeResolver;

/**
* Construct
*
* @param CountryFactory $countryFactory
* @param StoreManagerInterface $storeManager
* @param Config $configCacheType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/
namespace Magento\Catalog\Model\Product\Attribute\Source;

use Magento\Theme\Model\PageLayout\Config\Builder;

/**
* Catalog product landing page attribute source
*
* @author Magento Core Team <[email protected]>
*/
class Layout extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{
Expand All @@ -19,7 +19,8 @@ class Layout extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource

/**
* @inheritdoc
* @deprecated 103.0.1 since the cache is now handled by \Magento\Theme\Model\PageLayout\Config\Builder::$configFiles
* @var array
* @deprecated 103.0.1 since the cache is now handled by Builder::$configFiles
*/
protected $_options = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Configuration item option model
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Configuration\Item;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Interface of product configurational item option
*
* @api
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Configuration\Item\Option;

Expand Down
6 changes: 0 additions & 6 deletions app/code/Magento/Catalog/Model/Product/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
class Link extends \Magento\Framework\Model\AbstractModel
{
public const LINK_TYPE_RELATED = 1;

public const LINK_TYPE_UPSELL = 4;

public const LINK_TYPE_CROSSSELL = 5;

/**
Expand All @@ -36,15 +34,11 @@ class Link extends \Magento\Framework\Model\AbstractModel
protected $_attributes = null;

/**
* Factory for creating product collection
*
* @var \Magento\Catalog\Model\ResourceModel\Product\Link\Product\CollectionFactory
*/
protected $_productCollectionFactory;

/**
* Factory for product link collection
*
* @var \Magento\Catalog\Model\ResourceModel\Product\Link\CollectionFactory
*/
protected $_linkCollectionFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* Catalog product option default type
*
* @api
* @author Magento Core Team <[email protected]>
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @since 100.0.2
Expand Down
3 changes: 1 addition & 2 deletions app/code/Magento/Catalog/Model/Product/Type/Virtual.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Virtual product type implementation
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product\Type;

Expand Down Expand Up @@ -39,6 +37,7 @@ public function hasWeight()
*
* @param \Magento\Catalog\Model\Product $product
* @return void
* @phpcs:disable Magento2.CodeAnalysis.EmptyBlock.DetectedFunction
*/
public function deleteTypeSpecificData(\Magento\Catalog\Model\Product $product)
{
Expand Down
3 changes: 1 addition & 2 deletions app/code/Magento/Catalog/Model/Product/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*
* @method int getWebsiteId()
* @method \Magento\Catalog\Model\Product\Website setWebsiteId(int $value)
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Catalog\Model\Product;

Expand Down Expand Up @@ -68,6 +66,7 @@ public function addProducts($websiteIds, $productIds)

/**
* Retrieve product websites
*
* Return array with key as product ID and value array of websites
*
* @param int|array $productIds
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Catalog/Model/ResourceModel/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Catalog category model
*
* @author Magento Core Team <[email protected]>
*/
declare(strict_types=1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@

/**
* Catalog category EAV additional attribute resource collection
*
*/
class Collection extends \Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
{
/**
* Entity factory
*
* @var \Magento\Eav\Model\EntityFactory
*/
protected $_eavEntityFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,17 @@

/**
* Category image attribute frontend
*
* @author Magento Core Team <[email protected]>
*/
class Image extends \Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend
{
const IMAGE_PATH_SEGMENT = 'catalog/category/';
public const IMAGE_PATH_SEGMENT = 'catalog/category/';

/**
* Store manager
*
* @var \Magento\Store\Model\StoreManagerInterface
*/
protected $_storeManager;

/**
* Construct
*
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
*/
public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Catalog category landing page attribute source
*
* @author Magento Core Team <[email protected]>
*/
class Layout extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@

/**
* Catalog category landing page attribute source
*
* @author Magento Core Team <[email protected]>
*/
class Page extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
{
/**
* Block collection factory
*
* @var \Magento\Cms\Model\ResourceModel\Block\CollectionFactory
*/
protected $_blockCollectionFactory;

/**
* Construct
*
* @param \Magento\Cms\Model\ResourceModel\Block\CollectionFactory $blockCollectionFactory
*/
public function __construct(\Magento\Cms\Model\ResourceModel\Block\CollectionFactory $blockCollectionFactory)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
/**
* Event prefix used for catalog category collection events
*
* @var string
*/
protected $_eventPrefix = 'catalog_category_collection';
Expand All @@ -36,8 +34,6 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
protected $_eventObject = 'category_collection';

/**
* Store manager for managing store-related operations
*
* @var \Magento\Store\Model\StoreManagerInterface
*/
protected $_storeManager;
Expand Down
9 changes: 1 addition & 8 deletions app/code/Magento/Catalog/Model/ResourceModel/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Catalog Config Resource Model
*
* @author Magento Core Team <[email protected]>
*/
class Config extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
Expand All @@ -20,22 +18,16 @@ class Config extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
protected $_entityTypeId;

/**
* Store id
*
* @var int
*/
protected $_storeId = null;

/**
* Eav config
*
* @var \Magento\Eav\Model\Config
*/
protected $_eavConfig;

/**
* Store manager
*
* @var \Magento\Store\Model\StoreManagerInterface
*/
protected $_storeManager;
Expand Down Expand Up @@ -81,6 +73,7 @@ public function setStoreId($storeId)

/**
* Return store id.
*
* If is not set return current app store
*
* @return integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute implements
\Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface
{
public const MODULE_NAME = 'Magento_Catalog';

public const ENTITY = 'catalog_eav_attribute';

public const KEY_IS_GLOBAL = 'is_global';

private const ALLOWED_INPUT_TYPES = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* Catalog Layer Attribute Filter Resource Model
*
* @api
*
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Attribute extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* Catalog Layer Decimal attribute Filter Resource Model
*
* @api
*
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Decimal extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
Expand Down Expand Up @@ -88,6 +86,7 @@ public function getMinMax(\Magento\Catalog\Model\Layer\Filter\FilterInterface $f

/**
* Retrieve clean select with joined index table
*
* Joined table has index
*
* @param \Magento\Catalog\Model\Layer\Filter\FilterInterface $filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/**
* Catalog Product Mass processing resource model
*
* @author Magento Core Team <[email protected]>
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Action extends AbstractResource
Expand Down
Loading