We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3b6a8 commit 2a76139Copy full SHA for 2a76139
app/code/Magento/Catalog/Plugin/Model/Attribute/Backend/AttributeValidation.php
@@ -43,9 +43,12 @@ public function aroundValidate(
43
\Closure $proceed,
44
\Magento\Framework\DataObject $entity
45
) {
46
- $isAllowedType = !empty(array_filter(array_map(function ($allowedEntity) use ($entity) {
47
- return $entity instanceof $allowedEntity;
48
- }, $this->allowedEntityTypes)));
+ $isAllowedType = !empty(array_filter(
+ array_map(function ($allowedEntity) use ($entity) {
+ return $entity instanceof $allowedEntity;
49
+ }, $this->allowedEntityTypes)
50
+ )
51
+ );
52
53
if ($isAllowedType && (int) $this->storeManager->getStore()->getId() !== Store::DEFAULT_STORE_ID) {
54
$attrCode = $subject->getAttribute()->getAttributeCode();
0 commit comments