Skip to content

Commit d27cf63

Browse files
committed
Add the thrown notice to all Ajax controlers in the tax module
1 parent 66f1460 commit d27cf63

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

app/code/Magento/Tax/Controller/Adminhtml/Rule/AjaxLoadRates.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function __construct(
4848
* Get rates page via AJAX
4949
*
5050
* @return Json
51+
* @throws \InvalidArgumentException
5152
*/
5253
public function execute()
5354
{

app/code/Magento/Tax/Controller/Adminhtml/Tax/AjaxDelete.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class AjaxDelete extends \Magento\Tax\Controller\Adminhtml\Tax
1414
* Delete Tax Class via AJAX
1515
*
1616
* @return \Magento\Framework\Controller\Result\Json
17+
* @throws \InvalidArgumentException
1718
*/
1819
public function execute()
1920
{
@@ -29,6 +30,7 @@ public function execute()
2930
'error_message' => __('We can\'t delete this tax class right now.')
3031
];
3132
}
33+
3234
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
3335
$resultJson = $this->resultFactory->create(ResultFactory::TYPE_JSON);
3436
$resultJson->setData($responseContent);

app/code/Magento/Tax/Controller/Adminhtml/Tax/AjaxSave.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class AjaxSave extends \Magento\Tax\Controller\Adminhtml\Tax
1414
* Save Tax Class via AJAX
1515
*
1616
* @return \Magento\Framework\Controller\Result\Json
17+
* @throws \InvalidArgumentException
1718
*/
1819
public function execute()
1920
{
@@ -47,6 +48,7 @@ public function execute()
4748
'class_name' => '',
4849
];
4950
}
51+
5052
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
5153
$resultJson = $this->resultFactory->create(ResultFactory::TYPE_JSON);
5254
$resultJson->setData($responseContent);

0 commit comments

Comments
 (0)