Skip to content

Commit fb08ee1

Browse files
committed
B2B-2259: customAttributeMetadata GraphQl query has no cache identity
- fixed code style
1 parent c1a4b7f commit fb08ee1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

app/code/Magento/EavGraphQl/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
27

38
namespace Magento\EavGraphQl\Model\Resolver\Cache;
49

@@ -11,7 +16,7 @@
1116
class CustomAttributeMetadataIdentity implements IdentityInterface
1217
{
1318
/**
14-
* @inheirtdoc
19+
* @inheritDoc
1520
*/
1621
public function getIdentities(array $resolvedData): array
1722
{

app/code/Magento/EavGraphQl/Plugin/Eav/AttributePlugin.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ public function __construct(ManagerInterface $eventManager)
4141
*
4242
* @param Attribute $subject
4343
* @param Attribute $result
44+
*
4445
* @return Attribute
4546
*/
46-
public function afterSave(
47-
Attribute $subject,
48-
Attribute $result
49-
): Attribute
47+
public function afterSave(Attribute $subject, Attribute $result): Attribute
5048
{
5149
if (!$subject->isObjectNew()) {
5250
$this->triggerCacheClean($subject);
@@ -55,17 +53,14 @@ public function afterSave(
5553
}
5654

5755
/**
58-
* Clean cache by relevant tags after entity is deleted and afterDelete
59-
* handler is executed.
56+
* Clean cache by relevant tags after entity is deleted and afterDelete handler is executed.
6057
*
6158
* @param Attribute $subject
6259
* @param Attribute $result
60+
*
6361
* @return Attribute
6462
*/
65-
public function afterAfterDelete(
66-
Attribute $subject,
67-
Attribute $result
68-
) : Attribute
63+
public function afterAfterDelete(Attribute $subject, Attribute $result) : Attribute
6964
{
7065
$this->triggerCacheClean($subject);
7166
return $result;
@@ -88,7 +83,7 @@ private function triggerCacheClean(Attribute $entity): void
8883
}
8984

9085
/**
91-
* @inheirtdoc
86+
* @inheritDoc
9287
*/
9388
public function getIdentities()
9489
{

0 commit comments

Comments
 (0)