Skip to content

Commit 5a717c7

Browse files
committed
Fix static tests
1 parent 613f5fb commit 5a717c7

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Filters/UsedInProducts.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Framework\Data\OptionSourceInterface;
1313
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1414
use Magento\Framework\View\Element\UiComponentFactory;
15-
use Magento\MediaContentApi\Api\GetContentByAssetIdsInterface;
1615
use Magento\Ui\Component\Filters\FilterModifier;
1716
use Magento\Ui\Component\Filters\Type\Select;
1817
use Magento\Ui\Api\BookmarkManagementInterface;
@@ -34,6 +33,8 @@ class UsedInProducts extends Select
3433
private $productRepository;
3534

3635
/**
36+
* Constructor
37+
*
3738
* @param ContextInterface $context
3839
* @param UiComponentFactory $uiComponentFactory
3940
* @param FilterBuilder $filterBuilder
@@ -70,7 +71,7 @@ public function __construct(
7071
$this->productRepository = $productRepository;
7172
}
7273

73-
/*
74+
/**
7475
* Prepare component configuration
7576
*
7677
* @return void
@@ -99,7 +100,6 @@ public function prepare()
99100
'optgroup' => false
100101

101102
];
102-
103103
}
104104

105105
$this->wrappedComponent = $this->uiComponentFactory->create(
@@ -112,11 +112,11 @@ public function prepare()
112112
);
113113

114114
$this->wrappedComponent->prepare();
115-
$jsConfig = array_replace_recursive(
115+
$productsFilterJsConfig = array_replace_recursive(
116116
$this->getJsConfig($this->wrappedComponent),
117117
$this->getJsConfig($this)
118118
);
119-
$this->setData('js_config', $jsConfig);
119+
$this->setData('js_config', $productsFilterJsConfig);
120120

121121
$this->setData(
122122
'config',

app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Filters/UsedInBlocks.php renamed to app/code/Magento/MediaGalleryCmsUi/Ui/Component/Listing/Filters/UsedInBlocks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Framework\Data\OptionSourceInterface;
1313
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1414
use Magento\Framework\View\Element\UiComponentFactory;
15-
use Magento\MediaContentApi\Api\GetContentByAssetIdsInterface;
1615
use Magento\Ui\Component\Filters\FilterModifier;
1716
use Magento\Ui\Component\Filters\Type\Select;
1817
use Magento\Ui\Api\BookmarkManagementInterface;
@@ -34,6 +33,8 @@ class UsedInBlocks extends Select
3433
private $blockRepository;
3534

3635
/**
36+
* Constructor
37+
*
3738
* @param ContextInterface $context
3839
* @param UiComponentFactory $uiComponentFactory
3940
* @param FilterBuilder $filterBuilder
@@ -70,7 +71,7 @@ public function __construct(
7071
$this->blockRepository = $blockRepository;
7172
}
7273

73-
/*
74+
/**
7475
* Prepare component configuration
7576
*
7677
* @return void
@@ -97,7 +98,6 @@ public function prepare()
9798
'is_active' => $block->isActive(),
9899
'optgroup' => false
99100
];
100-
101101
}
102102

103103
$this->wrappedComponent = $this->uiComponentFactory->create(

app/code/Magento/MediaGalleryCatalogUi/Ui/Component/Listing/Filters/UsedInPages.php renamed to app/code/Magento/MediaGalleryCmsUi/Ui/Component/Listing/Filters/UsedInPages.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Framework\Data\OptionSourceInterface;
1313
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1414
use Magento\Framework\View\Element\UiComponentFactory;
15-
use Magento\MediaContentApi\Api\GetContentByAssetIdsInterface;
1615
use Magento\Ui\Component\Filters\FilterModifier;
1716
use Magento\Ui\Component\Filters\Type\Select;
1817
use Magento\Ui\Api\BookmarkManagementInterface;
@@ -34,6 +33,8 @@ class UsedInPages extends Select
3433
private $pageRepository;
3534

3635
/**
36+
* Constructor
37+
*
3738
* @param ContextInterface $context
3839
* @param UiComponentFactory $uiComponentFactory
3940
* @param FilterBuilder $filterBuilder
@@ -70,7 +71,7 @@ public function __construct(
7071
$this->pageRepository = $pageRepository;
7172
}
7273

73-
/*
74+
/**
7475
* Prepare component configuration
7576
*
7677
* @return void
@@ -97,7 +98,6 @@ public function prepare()
9798
'is_active' => $page->isActive(),
9899
'optgroup' => false
99100
];
100-
101101
}
102102

103103
$this->wrappedComponent = $this->uiComponentFactory->create(
@@ -110,11 +110,11 @@ public function prepare()
110110
);
111111

112112
$this->wrappedComponent->prepare();
113-
$jsConfig = array_replace_recursive(
113+
$pagesFilterjsConfig = array_replace_recursive(
114114
$this->getJsConfig($this->wrappedComponent),
115115
$this->getJsConfig($this)
116116
);
117-
$this->setData('js_config', $jsConfig);
117+
$this->setData('js_config', $pagesFilterjsConfig);
118118

119119
$this->setData(
120120
'config',

app/code/Magento/MediaGalleryUi/Ui/Component/Listing/Filters/Asset.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class Asset extends Select
5151
private $storage;
5252

5353
/**
54+
* Constructor
55+
*
5456
* @param ContextInterface $context
5557
* @param UiComponentFactory $uiComponentFactory
5658
* @param FilterBuilder $filterBuilder
@@ -63,6 +65,7 @@ class Asset extends Select
6365
* @param Storage $storage
6466
* @param array $components
6567
* @param array $data
68+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
6669
*/
6770
public function __construct(
6871
ContextInterface $context,
@@ -96,7 +99,7 @@ public function __construct(
9699
$this->storage = $storage;
97100
}
98101

99-
/*
102+
/**
100103
* Prepare component configuration
101104
*
102105
* @return void

0 commit comments

Comments
 (0)