File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
app/code/Magento/Tax/Controller/Adminhtml Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public function __construct(
48
48
* Get rates page via AJAX
49
49
*
50
50
* @return Json
51
+ * @throws \InvalidArgumentException
51
52
*/
52
53
public function execute ()
53
54
{
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class AjaxDelete extends \Magento\Tax\Controller\Adminhtml\Tax
14
14
* Delete Tax Class via AJAX
15
15
*
16
16
* @return \Magento\Framework\Controller\Result\Json
17
+ * @throws \InvalidArgumentException
17
18
*/
18
19
public function execute ()
19
20
{
@@ -29,6 +30,7 @@ public function execute()
29
30
'error_message ' => __ ('We can \'t delete this tax class right now. ' )
30
31
];
31
32
}
33
+
32
34
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
33
35
$ resultJson = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
34
36
$ resultJson ->setData ($ responseContent );
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class AjaxSave extends \Magento\Tax\Controller\Adminhtml\Tax
14
14
* Save Tax Class via AJAX
15
15
*
16
16
* @return \Magento\Framework\Controller\Result\Json
17
+ * @throws \InvalidArgumentException
17
18
*/
18
19
public function execute ()
19
20
{
@@ -47,6 +48,7 @@ public function execute()
47
48
'class_name ' => '' ,
48
49
];
49
50
}
51
+
50
52
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
51
53
$ resultJson = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
52
54
$ resultJson ->setData ($ responseContent );
You can’t perform that action at this time.
0 commit comments