@@ -33,36 +33,36 @@ class Data extends AbstractHelper
33
33
/**
34
34
* Config value that lists ISO2 country codes which have optional Zip/Postal pre-configured
35
35
*/
36
- const OPTIONAL_ZIP_COUNTRIES_CONFIG_PATH = 'general/country/optional_zip_countries ' ;
36
+ public const OPTIONAL_ZIP_COUNTRIES_CONFIG_PATH = 'general/country/optional_zip_countries ' ;
37
37
38
- /*
38
+ /**
39
39
* Path to config value, which lists countries, for which state is required.
40
40
*/
41
- const XML_PATH_STATES_REQUIRED = 'general/region/state_required ' ;
41
+ public const XML_PATH_STATES_REQUIRED = 'general/region/state_required ' ;
42
42
43
- /*
43
+ /**
44
44
* Path to config value, which detects whether or not display the state for the country, if it is not required
45
45
*/
46
- const XML_PATH_DISPLAY_ALL_STATES = 'general/region/display_all ' ;
46
+ public const XML_PATH_DISPLAY_ALL_STATES = 'general/region/display_all ' ;
47
47
48
48
/**#@+
49
49
* Path to config value, which is default country
50
50
*/
51
- const XML_PATH_DEFAULT_COUNTRY = 'general/country/default ' ;
52
- const XML_PATH_DEFAULT_LOCALE = 'general/locale/code ' ;
53
- const XML_PATH_DEFAULT_TIMEZONE = 'general/locale/timezone ' ;
51
+ public const XML_PATH_DEFAULT_COUNTRY = 'general/country/default ' ;
52
+ public const XML_PATH_DEFAULT_LOCALE = 'general/locale/code ' ;
53
+ public const XML_PATH_DEFAULT_TIMEZONE = 'general/locale/timezone ' ;
54
54
/**#@-*/
55
55
56
56
/**
57
57
* Path to config value that contains codes of the most used countries.
58
58
* Such countries can be shown on the top of the country list.
59
59
*/
60
- const XML_PATH_TOP_COUNTRIES = 'general/country/destinations ' ;
60
+ public const XML_PATH_TOP_COUNTRIES = 'general/country/destinations ' ;
61
61
62
62
/**
63
63
* Path to config value that contains weight unit
64
64
*/
65
- const XML_PATH_WEIGHT_UNIT = 'general/locale/weight_unit ' ;
65
+ public const XML_PATH_WEIGHT_UNIT = 'general/locale/weight_unit ' ;
66
66
67
67
/**
68
68
* @var Collection
@@ -234,7 +234,7 @@ public function getCountriesWithOptionalZip($asJson = false)
234
234
{
235
235
if (null === $ this ->_optZipCountries ) {
236
236
$ value = trim (
237
- $ this ->scopeConfig ->getValue (
237
+ ( string ) $ this ->scopeConfig ->getValue (
238
238
self ::OPTIONAL_ZIP_COUNTRIES_CONFIG_PATH ,
239
239
ScopeInterface::SCOPE_STORE
240
240
)
@@ -268,7 +268,7 @@ public function isZipCodeOptional($countryCode)
268
268
public function getCountriesWithStatesRequired ($ asJson = false )
269
269
{
270
270
$ value = trim (
271
- $ this ->scopeConfig ->getValue (
271
+ ( string ) $ this ->scopeConfig ->getValue (
272
272
self ::XML_PATH_STATES_REQUIRED ,
273
273
ScopeInterface::SCOPE_STORE
274
274
)
0 commit comments