Skip to content

Commit 3bc8239

Browse files
committed
static test fixes
1 parent a2d5113 commit 3bc8239

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

app/code/Magento/MediaContentCatalog/Observer/CategoryDelete.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class CategoryDelete implements ObserverInterface
3232
private $contentIdentityFactory;
3333

3434
/**
35-
* @var ContentAssetLinkInterfaceFactory
36-
*/
35+
* @var ContentAssetLinkInterfaceFactory
36+
*/
3737
private $contentAssetLinkFactory;
3838

3939
/**
@@ -62,6 +62,7 @@ class CategoryDelete implements ObserverInterface
6262
* @param DeleteContentAssetLinksInterface $deleteContentAssetLinks
6363
* @param ContentIdentityInterfaceFactory $contentIdentityFactory
6464
* @param ContentAssetLinkInterfaceFactory $contentAssetLinkFactory
65+
* @param array $fields
6566
*/
6667
public function __construct(
6768
ExtractAssetsFromContentInterface $extractAssetsFromContent,
@@ -88,7 +89,7 @@ public function __construct(
8889
public function execute(Observer $observer): void
8990
{
9091
$model = $observer->getEvent()->getData('category');
91-
$contentAssetsLinks = [];
92+
$contentAssetLinks = [];
9293

9394
if ($model instanceof CatalogCategory) {
9495
foreach ($this->fields as $field) {

app/code/Magento/MediaContentCatalog/Observer/ProductDelete.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class ProductDelete implements ObserverInterface
3232
private $contentIdentityFactory;
3333

3434
/**
35-
* @var ContentAssetLinkInterfaceFactory
36-
*/
35+
* @var ContentAssetLinkInterfaceFactory
36+
*/
3737
private $contentAssetLinkFactory;
3838

3939
/**
@@ -62,6 +62,7 @@ class ProductDelete implements ObserverInterface
6262
* @param DeleteContentAssetLinksInterface $deleteContentAssetLinks
6363
* @param ContentIdentityInterfaceFactory $contentIdentityFactory
6464
* @param ContentAssetLinkInterfaceFactory $contentAssetLinkFactory
65+
* @param array $fields
6566
*/
6667
public function __construct(
6768
ExtractAssetsFromContentInterface $extractAssetsFromContent,
@@ -88,7 +89,7 @@ public function __construct(
8889
public function execute(Observer $observer): void
8990
{
9091
$model = $observer->getEvent()->getData('product');
91-
$contentAssetsLinks = [];
92+
$contentAssetLinks = [];
9293

9394
if ($model instanceof CatalogProduct) {
9495
foreach ($this->fields as $field) {

app/code/Magento/MediaContentCms/Observer/BlockDelete.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class BlockDelete implements ObserverInterface
3232
private $contentIdentityFactory;
3333

3434
/**
35-
* @var ContentAssetLinkInterfaceFactory
36-
*/
35+
* @var ContentAssetLinkInterfaceFactory
36+
*/
3737
private $contentAssetLinkFactory;
3838

3939
/**
@@ -62,6 +62,7 @@ class BlockDelete implements ObserverInterface
6262
* @param DeleteContentAssetLinksInterface $deleteContentAssetLinks
6363
* @param ContentIdentityInterfaceFactory $contentIdentityFactory
6464
* @param ContentAssetLinkInterfaceFactory $contentAssetLinkFactory
65+
* @param array $fields
6566
*/
6667
public function __construct(
6768
ExtractAssetsFromContentInterface $extractAssetsFromContent,
@@ -88,7 +89,7 @@ public function __construct(
8889
public function execute(Observer $observer): void
8990
{
9091
$model = $observer->getEvent()->getData('object');
91-
$contentAssetsLinks = [];
92+
$contentAssetLinks = [];
9293

9394
if ($model instanceof CmsBlock) {
9495
foreach ($this->fields as $field) {

app/code/Magento/MediaContentCms/Observer/PageDelete.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Magento\MediaContentApi\Api\ExtractAssetsFromContentInterface;
1818

1919
/**
20-
* Observe the adminhtml_cmspage_on_delete event and deletes relation between page content and media asset.
20+
* Observe the cms_page_delete_before event and deletes relation between page content and media asset.
2121
*/
2222
class PageDelete implements ObserverInterface
2323
{
@@ -32,8 +32,8 @@ class PageDelete implements ObserverInterface
3232
private $contentIdentityFactory;
3333

3434
/**
35-
* @var ContentAssetLinkInterfaceFactory
36-
*/
35+
* @var ContentAssetLinkInterfaceFactory
36+
*/
3737
private $contentAssetLinkFactory;
3838

3939
/**
@@ -62,6 +62,7 @@ class PageDelete implements ObserverInterface
6262
* @param DeleteContentAssetLinksInterface $deleteContentAssetLinks
6363
* @param ContentIdentityInterfaceFactory $contentIdentityFactory
6464
* @param ContentAssetLinkInterfaceFactory $contentAssetLinkFactory
65+
* @param arry $fields
6566
*/
6667
public function __construct(
6768
ExtractAssetsFromContentInterface $extractAssetsFromContent,
@@ -88,7 +89,7 @@ public function __construct(
8889
public function execute(Observer $observer): void
8990
{
9091
$model = $observer->getEvent()->getData('object');
91-
$contentAssetsLinks = [];
92+
$contentAssetLinks = [];
9293

9394
if ($model instanceof CmsPage) {
9495
foreach ($this->fields as $field) {

0 commit comments

Comments
 (0)