Skip to content

Commit bf32a7f

Browse files
committed
Fix static tests.
1 parent b863602 commit bf32a7f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
namespace Magento\Catalog\Model\ResourceModel;
88

99
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
10+
use Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend;
11+
use Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend;
12+
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
1013

1114
/**
1215
* Catalog entity abstract model
@@ -86,16 +89,14 @@ protected function _isApplicableAttribute($object, $attribute)
8689
/**
8790
* Check whether attribute instance (attribute, backend, frontend or source) has method and applicable
8891
*
89-
* @param AbstractAttribute|\Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
90-
* |\Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend
91-
* |\Magento\Eav\Model\Entity\Attribute\Source\AbstractSource $instance
92+
* @param AbstractAttribute|AbstractBackend|AbstractFrontend|AbstractSource $instance
9293
* @param string $method
9394
* @param array $args array of arguments
9495
* @return boolean
9596
*/
9697
protected function _isCallableAttributeInstance($instance, $method, $args)
9798
{
98-
if ($instance instanceof \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
99+
if ($instance instanceof AbstractBackend
99100
&& ($method == 'beforeSave' || $method == 'afterSave')
100101
) {
101102
$attributeCode = $instance->getAttribute()->getAttributeCode();
@@ -112,6 +113,7 @@ protected function _isCallableAttributeInstance($instance, $method, $args)
112113

113114
/**
114115
* Retrieve select object for loading entity attributes values
116+
*
115117
* Join attribute store value
116118
*
117119
* @param \Magento\Framework\DataObject $object
@@ -244,6 +246,7 @@ protected function _saveAttributeValue($object, $attribute, $value)
244246

245247
/**
246248
* Check if attribute present for non default Store View.
249+
*
247250
* Prevent "delete" query locking in a case when nothing to delete
248251
*
249252
* @param AbstractAttribute $attribute

0 commit comments

Comments
 (0)