File tree 2 files changed +6
-4
lines changed
app/code/Magento/Tax/Controller/Adminhtml/Rate 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ class AjaxLoad extends \Magento\Tax\Controller\Adminhtml\Rate
14
14
/**
15
15
* Json needed for the Ajax Edit Form
16
16
*
17
- * @return void
17
+ * @return \Magento\Framework\Controller\Result\Json
18
+ * @throws \InvalidArgumentException
18
19
*/
19
20
public function execute ()
20
21
{
@@ -23,13 +24,13 @@ public function execute()
23
24
/* @var \Magento\Tax\Api\Data\TaxRateInterface */
24
25
$ taxRateDataObject = $ this ->_taxRateRepository ->get ($ rateId );
25
26
/* @var array */
26
- $ resultArray = $ this ->_taxRateConverter ->createArrayFromServiceObject ($ taxRateDataObject , true );
27
+ $ resultArray = $ this ->_taxRateConverter ->createArrayFromServiceObject ($ taxRateDataObject , true );
27
28
28
29
$ responseContent = [
29
30
'success ' => true ,
30
31
'error_message ' => '' ,
31
- 'result ' => $ resultArray ,
32
- ];
32
+ 'result ' => $ resultArray ,
33
+ ];
33
34
} catch (NoSuchEntityException $ e ) {
34
35
$ responseContent = [
35
36
'success ' => false ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class AjaxSave extends \Magento\Tax\Controller\Adminhtml\Rate
14
14
* Save Tax Rate via AJAX
15
15
*
16
16
* @return \Magento\Framework\Controller\Result\Json
17
+ * @throws \InvalidArgumentException
17
18
*/
18
19
public function execute ()
19
20
{
You can’t perform that action at this time.
0 commit comments