Skip to content

Commit 7e6b2f9

Browse files
AC-2571: Implemented Input Validation
* Add Input Validation
1 parent 64b398c commit 7e6b2f9

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog/NewConditionHtml.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ public function execute()
2626
$typeArr = explode('|', str_replace('-', '/', $this->getRequest()->getParam('type')));
2727
$type = $typeArr[0];
2828

29-
/**
30-
* @SuppressWarnings(PHPCPD-START)
31-
*/
3229
if (class_exists($type) && !in_array(ConditionInterface::class, class_implements($type))) {
3330
$html = '';
3431
$this->getResponse()->setBody($html);
3532
return;
3633
}
37-
/**
38-
* @SuppressWarnings(PHPCPD-END)
39-
*/
4034

4135
$model = $this->_objectManager->create($type)
4236
->setId($id)

app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/NewConditionHtml.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@ public function execute()
2727
$typeArr = explode('|', str_replace('-', '/', $this->getRequest()->getParam('type')));
2828
$type = $typeArr[0];
2929

30-
/**
31-
* @SuppressWarnings(PHPCPD-START)
32-
*/
3330
if (class_exists($type) && !in_array(ConditionInterface::class, class_implements($type))) {
3431
$html = '';
3532
$this->getResponse()->setBody($html);
3633
return;
3734
}
38-
/**
39-
* @SuppressWarnings(PHPCPD-END)
40-
*/
4135

4236
$model = $this->_objectManager->create(
4337
$type

0 commit comments

Comments
 (0)