Skip to content

Commit 1b4ae9d

Browse files
committed
Codding Standard Improvements
1 parent 9142d7a commit 1b4ae9d

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Model/WebContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function generateVariable(
301301
string $containerId,
302302
string $timestamp,
303303
string $storeId = null
304-
): array{
304+
): array {
305305
return [
306306
[
307307
'accountId' => $accountId,

Plugin/Magento/Customer/CustomerData/Customer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ public function __construct(
4040
*/
4141
public function afterGetSectionData(
4242
\Magento\Customer\CustomerData\Customer $subject,
43-
$result
44-
)
45-
{
46-
if ($this->config->isEnabled()){
43+
$result
44+
) {
45+
if ($this->config->isEnabled()) {
4746
if ($this->session->getCustomerId()) {
4847
$result['mf_gtm_customer_identifier'] = hash('sha256', (string)$this->session->getCustomer()->getEmail());
4948
}
5049
}
5150

5251
return $result;
5352
}
54-
}
53+
}

Plugin/Magento/Framework/App/Config/ScopeConfig.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Magento\Framework\App\Config\ScopeConfigInterface;
66
use Magefan\GoogleTagManager\Model\Config;
7+
78
class ScopeConfig
89
{
910
/**
@@ -27,8 +28,7 @@ class ScopeConfig
2728
*/
2829
public function __construct(
2930
Config $config
30-
)
31-
{
31+
) {
3232
$this->config = $config;
3333
}
3434

@@ -46,8 +46,7 @@ public function afterGetValue(
4646
$path,
4747
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
4848
$scopeCode = null
49-
)
50-
{
49+
) {
5150
if (in_array($path, self::PATHS)) {
5251
if ($this->config->isEnabled() && !$this->config->isThirdPartyGaEnabled()) {
5352
$result = '0';

view/frontend/templates/js_code.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (!isset($escaper)) {
5959
mfLoadGtm();
6060
<?php } ?>
6161

62-
<?php if ($this->isCookieRestrictionModeEnabled()) { ?>
62+
<?php if ($block->isCookieRestrictionModeEnabled()) { ?>
6363
(function () {
6464
function getCookieValue(cookieName) {
6565
let name = cookieName + '=';

0 commit comments

Comments
 (0)