1
1
<?php
2
2
/**
3
- * Impact: Partnership Cloud for Magento
4
- *
5
- * @package Impact_Integration
6
- * @copyright Copyright (c) 2021 Impact. (https://impact.com)
7
- */
3
+ * Impact: Partnership Cloud for Magento
4
+ *
5
+ * @package Impact_Integration
6
+ * @copyright Copyright (c) 2021 Impact. (https://impact.com)
7
+ */
8
8
9
9
namespace Impact \Integration \Controller \Adminhtml \System \Config ;
10
10
11
- use Impact \Integration \Service \ImpactApiService ;
11
+ use Impact \Integration \Service \ImpactApiService ;
12
12
use Magento \Integration \Api \IntegrationServiceInterface ;
13
13
use Magento \Integration \Api \OauthServiceInterface ;
14
14
use Impact \Integration \Model \ConfigData ;
@@ -56,7 +56,7 @@ class Button extends Action
56
56
57
57
/**
58
58
* Button constructor.
59
- *
59
+ *
60
60
* @param Context $context,
61
61
* @param LoggerInterface $logger
62
62
* @param IntegrationServiceInterface $integrationService
@@ -69,7 +69,6 @@ public function __construct(
69
69
IntegrationServiceInterface $ integrationService ,
70
70
OauthServiceInterface $ oauthService ,
71
71
ConfigData $ configData
72
-
73
72
) {
74
73
$ this ->_logger = $ logger ;
75
74
$ this ->_integrationService = $ integrationService ;
@@ -95,7 +94,7 @@ public function execute()
95
94
$ accessToken = $ token ->getToken ();
96
95
97
96
// Send request uninstall in saasler
98
- $ impactApiService = new ImpactApiService ($ accessToken , static ::API_ENDPOINT_UNINSTALL , 'DELETE ' , json_encode (['Deleted ' =>'yes ' ]));
97
+ $ impactApiService = new ImpactApiService ($ accessToken , static ::API_ENDPOINT_UNINSTALL , 'DELETE ' , json_encode (['Deleted ' =>'yes ' ]));
99
98
$ response = $ impactApiService ->execute ();
100
99
101
100
// Delete integration record
@@ -105,4 +104,4 @@ public function execute()
105
104
$ this ->configData ->deleteImpactIntegrationConfigData ();
106
105
}
107
106
}
108
- }
107
+ }
0 commit comments