Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit d55f47d

Browse files
committed
ENGCOM-3891: Static test fix.
1 parent 56c1b33 commit d55f47d

File tree

1 file changed

+8
-6
lines changed
  • app/code/Magento/Ui/Component/MassAction

1 file changed

+8
-6
lines changed

app/code/Magento/Ui/Component/MassAction/Filter.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
namespace Magento\Ui\Component\MassAction;
88

99
use Magento\Framework\Api\FilterBuilder;
10-
use Magento\Framework\Exception\LocalizedException;
11-
use Magento\Framework\View\Element\UiComponentFactory;
1210
use Magento\Framework\App\RequestInterface;
13-
use Magento\Framework\View\Element\UiComponentInterface;
1411
use Magento\Framework\Data\Collection\AbstractDb;
12+
use Magento\Framework\Exception\LocalizedException;
1513
use Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface;
14+
use Magento\Framework\View\Element\UiComponentFactory;
15+
use Magento\Framework\View\Element\UiComponentInterface;
1616

1717
/**
18+
* Filter component.
19+
*
1820
* @api
1921
* @since 100.0.2
2022
*/
@@ -99,10 +101,10 @@ public function getCollection(AbstractDb $collection)
99101
throw new LocalizedException(__('An item needs to be selected. Select and try again.'));
100102
}
101103
}
102-
104+
103105
$filterIds = $this->getFilterIds();
104-
if(is_array($selected)){
105-
$filterIds = array_unique(array_merge($this->getFilterIds(), $selected));
106+
if (\is_array($selected)) {
107+
$filterIds = array_unique(array_merge($filterIds, $selected));
106108
}
107109
$collection->addFieldToFilter(
108110
$collection->getIdFieldName(),

0 commit comments

Comments
 (0)