Skip to content

Commit 3197dff

Browse files
committed
fixing issues automatically
1 parent 729bd42 commit 3197dff

File tree

20 files changed

+228
-239
lines changed

20 files changed

+228
-239
lines changed

Block/Adminhtml/Form/Field/MaskText.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Block\Adminhtml\Form\Field;
1010

11-
1211
use Magento\Framework\Escaper;
1312

1413
class MaskText extends \Magento\Framework\Data\Form\Element\Text
@@ -34,10 +33,9 @@ public function __construct(
3433

3534
private function maskText($data)
3635
{
37-
if (isset($data["value"]))
38-
{
36+
if (isset($data["value"])) {
3937
$data["placeholder"] = str_repeat('*', strlen($data["value"])-4) . substr($data["value"], -4);
4038
}
4139
return $data;
4240
}
43-
}
41+
}

Block/IntegrationScript.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Block;
1010

@@ -26,7 +26,7 @@ class IntegrationScript extends Template
2626

2727
/**
2828
* IntegrationScript constructor.
29-
*
29+
*
3030
* @param Context $context
3131
* @param Data $helperData
3232
*/
@@ -41,7 +41,7 @@ public function __construct(
4141
}
4242

4343
/**
44-
* Function isActive
44+
* Function isActive
4545
*
4646
* @return bool
4747
*/
@@ -54,12 +54,12 @@ public function isActive()
5454
}
5555

5656
/**
57-
* Function getScript
57+
* Function getScript
5858
*
5959
* @return string|null
6060
*/
6161
public function getScript()
6262
{
6363
return $this->helperData->getUttDefault();
6464
}
65-
}
65+
}

Block/System/Config/Button.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Block\System\Config;
1010

@@ -25,7 +25,7 @@ class Button extends Field
2525

2626
/**
2727
* Button constructor.
28-
*
28+
*
2929
* @param Context $context
3030
* @param array $data
3131
*/
@@ -38,7 +38,7 @@ public function __construct(
3838

3939
/**
4040
* Function render.
41-
*
41+
*
4242
* @param Magento\Framework\Data\Form\Element\AbstractElement $element
4343
*/
4444
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
@@ -49,7 +49,7 @@ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $ele
4949

5050
/**
5151
* Function _getElementHtml.
52-
*
52+
*
5353
* @param Magento\Framework\Data\Form\Element\AbstractElement $element
5454
*/
5555
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
@@ -59,7 +59,7 @@ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\Abstract
5959

6060
/**
6161
* Function getAjaxUrl.
62-
*
62+
*
6363
*/
6464
public function getAjaxUrl()
6565
{
@@ -68,7 +68,7 @@ public function getAjaxUrl()
6868

6969
/**
7070
* Function getButtonHtml.
71-
*
71+
*
7272
*/
7373
public function getButtonHtml()
7474
{

Block/System/Config/NewPage.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Block\System\Config;
1010

1111
use Magento\Config\Block\System\Config\Form\Field;
1212
use Magento\Backend\Block\Template\Context;
13+
1314
/**
1415
* Class Button
1516
*
@@ -24,7 +25,7 @@ class NewPage extends Field
2425

2526
/**
2627
* Button constructor.
27-
*
28+
*
2829
* @param Context $context
2930
* @param array $data
3031
*/
@@ -38,7 +39,7 @@ public function __construct(
3839

3940
/**
4041
* Function render.
41-
*
42+
*
4243
* @param Magento\Framework\Data\Form\Element\AbstractElement $element
4344
*/
4445
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
@@ -49,7 +50,7 @@ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $ele
4950

5051
/**
5152
* Function _getElementHtml.
52-
*
53+
*
5354
* @param Magento\Framework\Data\Form\Element\AbstractElement $element
5455
*/
5556
protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element)
@@ -60,7 +61,7 @@ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\Abstract
6061

6162
/**
6263
* Function getAjaxUrl.
63-
*
64+
*
6465
*/
6566
public function getAjaxUrl()
6667
{
@@ -69,7 +70,7 @@ public function getAjaxUrl()
6970

7071
/**
7172
* Function getButtonHtml.
72-
*
73+
*
7374
*/
7475
public function getButtonHtml()
7576
{
@@ -108,8 +109,7 @@ private function encapsulateValues($results)
108109
$var = [];
109110
$var_renew = [];
110111
if (!empty($results)) {
111-
foreach ($results as $data)
112-
{
112+
foreach ($results as $data) {
113113
$var[] = $data['value'];
114114
}
115115
$var_renew['account_id'] = $var[0]??'';
@@ -121,4 +121,4 @@ private function encapsulateValues($results)
121121

122122
return $var_renew;
123123
}
124-
}
124+
}

Controller/Adminhtml/System/Config/Button.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Controller\Adminhtml\System\Config;
1010

11-
use Impact\Integration\Service\ImpactApiService;
11+
use Impact\Integration\Service\ImpactApiService;
1212
use Magento\Integration\Api\IntegrationServiceInterface;
1313
use Magento\Integration\Api\OauthServiceInterface;
1414
use Impact\Integration\Model\ConfigData;
@@ -56,7 +56,7 @@ class Button extends Action
5656

5757
/**
5858
* Button constructor.
59-
*
59+
*
6060
* @param Context $context,
6161
* @param LoggerInterface $logger
6262
* @param IntegrationServiceInterface $integrationService
@@ -69,7 +69,6 @@ public function __construct(
6969
IntegrationServiceInterface $integrationService,
7070
OauthServiceInterface $oauthService,
7171
ConfigData $configData
72-
7372
) {
7473
$this->_logger = $logger;
7574
$this->_integrationService = $integrationService;
@@ -95,7 +94,7 @@ public function execute()
9594
$accessToken = $token->getToken();
9695

9796
// 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']));
9998
$response = $impactApiService->execute();
10099

101100
// Delete integration record
@@ -105,4 +104,4 @@ public function execute()
105104
$this->configData->deleteImpactIntegrationConfigData();
106105
}
107106
}
108-
}
107+
}

Helper/Data.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
/**
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+
*/
88

99
namespace Impact\Integration\Helper;
1010

@@ -39,18 +39,18 @@ class Data extends AbstractHelper
3939
const XML_UTT_DEFAULT_PATH = 'impact_integration/existing_customer/utt_default';
4040

4141
/**
42-
* Get conversion url.
43-
*
44-
* @return string
45-
*/
42+
* Get conversion url.
43+
*
44+
* @return string
45+
*/
4646
public function getConversionUrl()
4747
{
4848
return $this->scopeConfig->getValue(static::XML_CONVERSION_URL_PATH);
4949
}
5050

5151
/**
5252
* Get refund url.
53-
*
53+
*
5454
* @return string
5555
*/
5656
public function getRefundUrl()
@@ -60,7 +60,7 @@ public function getRefundUrl()
6060

6161
/**
6262
* Get utt defaul.
63-
*
63+
*
6464
* @return string
6565
*/
6666
public function getUttDefault()
@@ -70,7 +70,7 @@ public function getUttDefault()
7070

7171
/**
7272
* Get Config Value.
73-
*
73+
*
7474
* @param string $path
7575
* @return string
7676
*/
@@ -81,7 +81,7 @@ public function getConfigValue($path)
8181

8282
/**
8383
* Set Store scope.
84-
*
84+
*
8585
* @return string
8686
*/
8787
public function setStoreScope()
@@ -91,11 +91,11 @@ public function setStoreScope()
9191

9292
/**
9393
* Get if store is enabled.
94-
*
94+
*
9595
* @return integer
9696
*/
9797
public function isEnabled()
9898
{
9999
return $this->scopeConfig->getValue(static::MODULE_ENABLE_DISABLE, $this->setStoreScope());
100100
}
101-
}
101+
}

0 commit comments

Comments
 (0)