Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Mar 16, 2021
1 parent 972957d commit aa792af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Model/Config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace CustomGento\Cookiebot\Model;
Expand All @@ -10,7 +11,7 @@ class Config
{
public const XML_PATH_COOKIEBOT_ENABLED = 'web/cookiebot/enabled';
public const XML_PATH_COOKIEBOT_ID = 'web/cookiebot/id';
public const XML_PATH_DATA_CULTURE = 'web/cookiebot/data_culture';
public const XML_PATH_DATA_CULTURE = 'web/cookiebot/data_culture';

/**
* @var ScopeConfigInterface
Expand Down
1 change: 0 additions & 1 deletion Model/ScriptGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public function generate(): string
$dataCulture = $this->config->getDataCulture() ?
sprintf('data-culture="%s"', $this->config->getDataCulture()) : '';


return sprintf(self::COOKIEBOT_SCRIPT_FORMAT, $cookiebotId, $dataCulture);
}
}
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<field id="enabled">1</field>
</depends>
</field>
<field id="data_culture" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="data_culture" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Data Culture</label>
<depends>
<field id="enabled">1</field>
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<cookiebot>
<enabled>0</enabled>
<id/>
<data_culture />
<data_culture/>
</cookiebot>
</web>
</default>
Expand Down

0 comments on commit aa792af

Please sign in to comment.