diff --git a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php index 7758b8040547c..8d7fa38349179 100644 --- a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php +++ b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php @@ -7,17 +7,12 @@ /** * Eav Attribute Block with additional js scripts in template - * - * @author Magento Core Team */ class Js extends \Magento\Backend\Block\Template { /** - * Js template - * * @var string */ - protected $_template = 'Magento_Eav::attribute/edit/js.phtml'; /** @@ -26,7 +21,7 @@ class Js extends \Magento\Backend\Block\Template private $inputtype; /** - * {@inheritdoc} + * @inheritDoc */ public function __construct( \Magento\Backend\Block\Template\Context $context, @@ -38,6 +33,8 @@ public function __construct( } /** + * Return compatible input types + * * @deprecated 102.0.0 Misspelled method * @see getCompatibleInputTypes */ diff --git a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Labels.php b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Labels.php index d84d13cd7c37b..3479450fba443 100644 --- a/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Labels.php +++ b/app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Options/Labels.php @@ -9,7 +9,6 @@ * Attribute add/edit form options tab * * @api - * @author Magento Core Team * @since 100.0.2 */ class Labels extends \Magento\Backend\Block\Template diff --git a/app/code/Magento/Eav/Block/Adminhtml/Attribute/PropertyLocker.php b/app/code/Magento/Eav/Block/Adminhtml/Attribute/PropertyLocker.php index 30e8a2af8b3f6..72d641a96522a 100644 --- a/app/code/Magento/Eav/Block/Adminhtml/Attribute/PropertyLocker.php +++ b/app/code/Magento/Eav/Block/Adminhtml/Attribute/PropertyLocker.php @@ -10,8 +10,6 @@ /** * Disable form fields - * - * @author Magento Core Team */ class PropertyLocker { @@ -39,6 +37,8 @@ public function __construct( } /** + * Lock form data + * * @param \Magento\Framework\Data\Form $form * @return void */ diff --git a/app/code/Magento/Eav/Model/Adminhtml/System/Config/Source/Inputtype/Validator.php b/app/code/Magento/Eav/Model/Adminhtml/System/Config/Source/Inputtype/Validator.php index 57f3d431d88e1..a49ad8c2f05be 100644 --- a/app/code/Magento/Eav/Model/Adminhtml/System/Config/Source/Inputtype/Validator.php +++ b/app/code/Magento/Eav/Model/Adminhtml/System/Config/Source/Inputtype/Validator.php @@ -9,8 +9,6 @@ /** * Validator for check input type value - * - * @author Magento Core Team */ class Validator extends InArray { diff --git a/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php b/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php index 8f86d007567b5..4aa24c4970fb4 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/AbstractData.php @@ -20,7 +20,6 @@ * * phpcs:disable Magento2.Classes.AbstractApi * @api - * @author Magento Core Team * @SuppressWarnings(PHPMD.CouplingBetweenObjects) * @since 100.0.2 */ diff --git a/app/code/Magento/Eav/Model/Attribute/Data/Boolean.php b/app/code/Magento/Eav/Model/Attribute/Data/Boolean.php index c1aaf28c7b012..f4eac07ae3e3c 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/Boolean.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/Boolean.php @@ -7,8 +7,6 @@ /** * EAV Entity Attribute Boolean Data Model - * - * @author Magento Core Team */ class Boolean extends \Magento\Eav\Model\Attribute\Data\Select { diff --git a/app/code/Magento/Eav/Model/Attribute/Data/Hidden.php b/app/code/Magento/Eav/Model/Attribute/Data/Hidden.php index 511d702744e59..bc18b3ab4767b 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/Hidden.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/Hidden.php @@ -7,8 +7,6 @@ /** * EAV Entity Attribute Hidden text Data Model - * - * @author Magento Core Team */ class Hidden extends \Magento\Eav\Model\Attribute\Data\Text { diff --git a/app/code/Magento/Eav/Model/Attribute/Data/Image.php b/app/code/Magento/Eav/Model/Attribute/Data/Image.php index d5fff6c881115..448d012d0bef5 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/Image.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/Image.php @@ -9,8 +9,6 @@ /** * EAV Entity Attribute Image File Data Model - * - * @author Magento Core Team */ class Image extends \Magento\Eav\Model\Attribute\Data\File { @@ -31,6 +29,7 @@ protected function _validateByRules($value) $rules = $this->getAttribute()->getValidateRules(); $localStorage = !$this->_directory->getDriver() instanceof ExtendedDriverInterface; $imageProp = $localStorage + // @phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged,Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative ? @getimagesize($value['tmp_name']) : $this->_directory->getDriver()->getMetadata($value['tmp_name']); $allowImageTypes = ['gif', 'jpg', 'jpeg', 'png']; @@ -44,8 +43,10 @@ protected function _validateByRules($value) } // modify image name + // phpcs:ignore Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative $extension = pathinfo($value['name'], PATHINFO_EXTENSION); if ($extension !== $imageProp['extension']) { + // phpcs:ignore Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative $value['name'] = pathinfo($value['name'], PATHINFO_FILENAME) . '.' . $imageProp['extension']; } diff --git a/app/code/Magento/Eav/Model/Attribute/Data/Textarea.php b/app/code/Magento/Eav/Model/Attribute/Data/Textarea.php index 7fb41df0e1e9b..8b8ee54533876 100644 --- a/app/code/Magento/Eav/Model/Attribute/Data/Textarea.php +++ b/app/code/Magento/Eav/Model/Attribute/Data/Textarea.php @@ -7,8 +7,6 @@ /** * EAV Entity Attribute Text Area Data Model - * - * @author Magento Core Team */ class Textarea extends \Magento\Eav\Model\Attribute\Data\Text { diff --git a/app/code/Magento/Eav/Model/AttributeDataFactory.php b/app/code/Magento/Eav/Model/AttributeDataFactory.php index 11313213b20d4..59250e027ae3f 100644 --- a/app/code/Magento/Eav/Model/AttributeDataFactory.php +++ b/app/code/Magento/Eav/Model/AttributeDataFactory.php @@ -10,8 +10,6 @@ /** * EAV Entity Attribute Data Factory - * - * @author Magento Core Team */ class AttributeDataFactory implements ResetAfterRequestInterface { @@ -22,10 +20,7 @@ class AttributeDataFactory implements ResetAfterRequestInterface public const OUTPUT_FORMAT_ONELINE = 'oneline'; public const OUTPUT_FORMAT_ARRAY = 'array'; - // available only for multiply attributes - /** - * @var array - */ + /** @var array available only for multiply attributes */ protected $_dataModels = []; /** diff --git a/app/code/Magento/Eav/Model/Entity/AbstractEntity.php b/app/code/Magento/Eav/Model/Entity/AbstractEntity.php index f34f675831f7b..48148cc4e746a 100644 --- a/app/code/Magento/Eav/Model/Entity/AbstractEntity.php +++ b/app/code/Magento/Eav/Model/Entity/AbstractEntity.php @@ -29,7 +29,6 @@ * * phpcs:disable Magento2.Classes.AbstractApi * @api - * @author Magento Core Team * @SuppressWarnings(PHPMD.TooManyFields) * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php b/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php index 7fadb1f32fdb6..454801b5780b4 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php @@ -6,8 +6,6 @@ /** * Entity/Attribute/Model - attribute frontend abstract - * - * @author Magento Core Team */ namespace Magento\Eav\Model\Entity\Attribute\Frontend; @@ -22,6 +20,7 @@ /** * EAV entity attribute form renderer. * + * @phpcs:ignore Magento2.Classes.AbstractApi.AbstractApi * @api * @since 100.0.2 */ diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Set.php b/app/code/Magento/Eav/Model/Entity/Attribute/Set.php index c14dc69a649bd..51722992065a4 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Set.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Set.php @@ -13,8 +13,6 @@ * @method \Magento\Eav\Model\Entity\Attribute\Set setAttributeSetName(string $value) * @method int getSortOrder() * @method \Magento\Eav\Model\Entity\Attribute\Set setSortOrder(int $value) - * - * @author Magento Core Team */ namespace Magento\Eav\Model\Entity\Attribute; @@ -31,13 +29,13 @@ class Set extends \Magento\Framework\Model\AbstractExtensibleModel implements /**#@+ * Constants */ - const KEY_ATTRIBUTE_SET_ID = 'attribute_set_id'; - const KEY_ATTRIBUTE_SET_NAME = 'attribute_set_name'; - const KEY_SORT_ORDER = 'sort_order'; - const KEY_ENTITY_TYPE_ID = 'entity_type_id'; + public const KEY_ATTRIBUTE_SET_ID = 'attribute_set_id'; + public const KEY_ATTRIBUTE_SET_NAME = 'attribute_set_name'; + public const KEY_SORT_ORDER = 'sort_order'; + public const KEY_ENTITY_TYPE_ID = 'entity_type_id'; /**#@-*/ - /**#@-*/ + /** @var \Magento\Framework\Model\ResourceModel\Db\AbstractDb */ protected $_resource; /** @@ -253,6 +251,8 @@ public function organizeData($data) } /** + * Initialise a group model + * * @param array $group * @return Group */ @@ -383,7 +383,7 @@ protected function _getResource() } /** - * {@inheritdoc} + * @inheritDoc * @codeCoverageIgnoreStart */ public function getAttributeSetId() @@ -392,7 +392,7 @@ public function getAttributeSetId() } /** - * {@inheritdoc} + * @inheritDoc */ public function getAttributeSetName() { @@ -400,7 +400,7 @@ public function getAttributeSetName() } /** - * {@inheritdoc} + * @inheritDoc */ public function getSortOrder() { @@ -408,7 +408,7 @@ public function getSortOrder() } /** - * {@inheritdoc} + * @inheritDoc */ public function getEntityTypeId() { @@ -471,7 +471,7 @@ public function setEntityTypeId($entityTypeId) } /** - * {@inheritdoc} + * @inheritDoc * * @return \Magento\Eav\Api\Data\AttributeSetExtensionInterface|null|null */ @@ -481,7 +481,7 @@ public function getExtensionAttributes() } /** - * {@inheritdoc} + * @inheritDoc * * @param \Magento\Eav\Api\Data\AttributeSetExtensionInterface|null $extensionAttributes * @return $this diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php b/app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php index 82e071077be1c..bc67edc8f4e36 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php @@ -10,7 +10,6 @@ * Entity/Attribute/Model - attribute selection source abstract * phpcs:disable Magento2.Classes.AbstractApi * @api - * @author Magento Core Team * @SuppressWarnings(PHPMD.NumberOfChildren) * @since 100.0.2 */ diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Source/Config.php b/app/code/Magento/Eav/Model/Entity/Attribute/Source/Config.php index 8cd5933089dca..51329670d671b 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Source/Config.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Source/Config.php @@ -9,8 +9,6 @@ * Entity/Attribute/Model - attribute selection source from configuration * * this class should be abstract, but kept usual for legacy purposes - * - * @author Magento Core Team */ class Config extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource { diff --git a/app/code/Magento/Eav/Model/Form/Type.php b/app/code/Magento/Eav/Model/Form/Type.php index 4aaadc8310800..9cdc78ab30bf4 100644 --- a/app/code/Magento/Eav/Model/Form/Type.php +++ b/app/code/Magento/Eav/Model/Form/Type.php @@ -18,8 +18,6 @@ * @method \Magento\Eav\Model\Form\Type setTheme(string $value) * @method int getStoreId() * @method \Magento\Eav\Model\Form\Type setStoreId(int $value) - * - * @author Magento Core Team */ class Type extends \Magento\Framework\Model\AbstractModel { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Config.php b/app/code/Magento/Eav/Model/ResourceModel/Config.php index b34cf47b16337..ffbfbbf77e19c 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Config.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Config.php @@ -7,8 +7,6 @@ /** * Eav Resource Config model - * - * @author Magento Core Team */ class Config extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Grid/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Grid/Collection.php index e8ba41ea3cc81..34af15e0e7813 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Grid/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Grid/Collection.php @@ -9,8 +9,6 @@ /** * Eav Resource Attribute Set Collection - * - * @author Magento Core Team */ class Collection extends \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php index d19b284674f08..4c77c75a1fb91 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option.php @@ -7,7 +7,6 @@ /** * Entity attribute option resource model - * */ class Option extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php index 8dc310ad805ce..347c5ee36a9a5 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php @@ -7,14 +7,10 @@ /** * Entity attribute option collection - * - * @author Magento Core Team */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection { /** - * Option value table - * * @var string */ protected $_optionValueTable; diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Set/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Set/Collection.php index c0b7baee450b6..9949aa6a957c8 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Set/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Set/Collection.php @@ -9,7 +9,6 @@ * Eav Resource Attribute Set Collection * * @api - * @author Magento Core Team * @since 100.0.2 */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Store.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Store.php index 396d9d9df2589..6ee389e26bbce 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Store.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Store.php @@ -10,8 +10,6 @@ /** * Eav Entity store resource model - * - * @author Magento Core Team */ class Store extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Entity/Type/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Entity/Type/Collection.php index bf1c793f85052..0339d6253e723 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Entity/Type/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Entity/Type/Collection.php @@ -7,8 +7,6 @@ /** * Eav Resource Entity Type Collection Model - * - * @author Magento Core Team */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute.php index 9af9012e8c9a2..f09c76c88355a 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute.php @@ -6,8 +6,6 @@ /** * EAV Form Attribute Resource Model - * - * @author Magento Core Team */ namespace Magento\Eav\Model\ResourceModel\Form; diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute/Collection.php index 0f66f6a703619..ee4e396003576 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Attribute/Collection.php @@ -9,7 +9,6 @@ * EAV Form Attribute Resource Collection * * @api - * @author Magento Core Team * @since 100.0.2 */ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Element.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Element.php index 2d044a8477358..fdedfb36bbd0c 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Element.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Element.php @@ -7,8 +7,6 @@ /** * Eav Form Element Resource Model - * - * @author Magento Core Team */ class Element extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Fieldset.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Fieldset.php index bbe7949c4d70b..0304d788517a1 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Fieldset.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Fieldset.php @@ -11,8 +11,6 @@ /** * Eav Form Fieldset Resource Model - * - * @author Magento Core Team */ class Fieldset extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Type.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Type.php index 4234b11abde80..7a0810c9fa411 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Type.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Type.php @@ -10,8 +10,6 @@ /** * Eav Form Type Resource Model - * - * @author Magento Core Team */ class Type extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { diff --git a/app/code/Magento/Eav/Model/ResourceModel/Form/Type/Collection.php b/app/code/Magento/Eav/Model/ResourceModel/Form/Type/Collection.php index 1130c158e15dd..b2ab20ac249c7 100644 --- a/app/code/Magento/Eav/Model/ResourceModel/Form/Type/Collection.php +++ b/app/code/Magento/Eav/Model/ResourceModel/Form/Type/Collection.php @@ -6,8 +6,6 @@ /** * Eav Form Type Resource Collection - * - * @author Magento Core Team */ namespace Magento\Eav\Model\ResourceModel\Form\Type; diff --git a/app/code/Magento/Eav/Model/Validator/Attribute/Data.php b/app/code/Magento/Eav/Model/Validator/Attribute/Data.php index 31af081de9668..22a19f07abdf9 100644 --- a/app/code/Magento/Eav/Model/Validator/Attribute/Data.php +++ b/app/code/Magento/Eav/Model/Validator/Attribute/Data.php @@ -13,8 +13,6 @@ /** * EAV attribute data validator - * - * @author Magento Core Team */ class Data extends \Magento\Framework\Validator\AbstractValidator {