Skip to content

Commit d2e5d87

Browse files
committed
ENGCOM-3588: Static tests fix.
1 parent fad31c6 commit d2e5d87

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Massaction/AbstractMassaction.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
namespace Magento\Backend\Block\Widget\Grid\Massaction;
88

99
use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface as VisibilityChecker;
10-
use Magento\Framework\DataObject;
1110
use Magento\Framework\Data\Collection\AbstractDb;
11+
use Magento\Framework\DataObject;
1212

1313
/**
1414
* Grid widget massaction block
@@ -53,7 +53,7 @@ public function __construct(
5353
}
5454

5555
/**
56-
* @return void
56+
* @inheritdoc
5757
*/
5858
protected function _construct()
5959
{
@@ -218,6 +218,7 @@ public function getGridJsObjectName()
218218
* Retrieve JSON string of selected checkboxes
219219
*
220220
* @return string
221+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
221222
*/
222223
public function getSelectedJson()
223224
{
@@ -232,6 +233,7 @@ public function getSelectedJson()
232233
* Retrieve array of selected checkboxes
233234
*
234235
* @return string[]
236+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
235237
*/
236238
public function getSelected()
237239
{
@@ -253,6 +255,8 @@ public function getApplyButtonHtml()
253255
}
254256

255257
/**
258+
* Get mass action javascript code.
259+
*
256260
* @return string
257261
*/
258262
public function getJavaScript()
@@ -269,6 +273,8 @@ public function getJavaScript()
269273
}
270274

271275
/**
276+
* Get grid ids in JSON format.
277+
*
272278
* @return string
273279
*/
274280
public function getGridIdsJson()
@@ -278,7 +284,7 @@ public function getGridIdsJson()
278284
}
279285
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
280286
$allIdsCollection = clone $this->getParentBlock()->getCollection();
281-
287+
282288
if ($this->getMassactionIdField()) {
283289
$massActionIdField = $this->getMassactionIdField();
284290
} else {
@@ -289,7 +295,7 @@ public function getGridIdsJson()
289295
$allIdsCollection->getSelect()->limit();
290296
$allIdsCollection->clear();
291297
}
292-
298+
293299
$gridIds = $allIdsCollection->setPageSize(0)->getColumnValues($massActionIdField);
294300
if (!empty($gridIds)) {
295301
return join(",", $gridIds);
@@ -298,6 +304,8 @@ public function getGridIdsJson()
298304
}
299305

300306
/**
307+
* Get Html id.
308+
*
301309
* @return string
302310
*/
303311
public function getHtmlId()

0 commit comments

Comments
 (0)