@@ -27,11 +27,15 @@ class Currencysymbol
27
27
protected $ _symbolsData = [];
28
28
29
29
/**
30
+ * Store id
31
+ *
30
32
* @var string|null
31
33
*/
32
34
protected $ _storeId ;
33
35
34
36
/**
37
+ * Website id
38
+ *
35
39
* @var string|null
36
40
*/
37
41
protected $ _websiteId ;
@@ -51,19 +55,19 @@ class Currencysymbol
51
55
/**
52
56
* Config path to custom currency symbol value
53
57
*/
54
- public const XML_PATH_CUSTOM_CURRENCY_SYMBOL = 'currency/options/customsymbol ' ;
58
+ const XML_PATH_CUSTOM_CURRENCY_SYMBOL = 'currency/options/customsymbol ' ;
55
59
56
- public const XML_PATH_ALLOWED_CURRENCIES = \Magento \Directory \Model \Currency::XML_PATH_CURRENCY_ALLOW ;
60
+ const XML_PATH_ALLOWED_CURRENCIES = \Magento \Directory \Model \Currency::XML_PATH_CURRENCY_ALLOW ;
57
61
58
62
/*
59
63
* Separator used in config in allowed currencies list
60
64
*/
61
- public const ALLOWED_CURRENCIES_CONFIG_SEPARATOR = ', ' ;
65
+ const ALLOWED_CURRENCIES_CONFIG_SEPARATOR = ', ' ;
62
66
63
67
/**
64
68
* Config currency section
65
69
*/
66
- public const CONFIG_SECTION = 'currency ' ;
70
+ const CONFIG_SECTION = 'currency ' ;
67
71
68
72
/**
69
73
* Core event manager proxy
@@ -288,7 +292,7 @@ protected function _unserializeStoreConfig($configPath, $storeId = null)
288
292
*/
289
293
protected function getAllowedCurrencies ()
290
294
{
291
- $ allowedCurrencies = [];
295
+ $ allowedCurrencies = [[] ];
292
296
$ allowedCurrencies [] = explode (
293
297
self ::ALLOWED_CURRENCIES_CONFIG_SEPARATOR ,
294
298
$ this ->_scopeConfig ->getValue (
@@ -326,6 +330,6 @@ protected function getAllowedCurrencies()
326
330
}
327
331
}
328
332
}
329
- return array_unique (array_merge ([], ...$ allowedCurrencies ));
333
+ return array_unique (array_merge (...$ allowedCurrencies ));
330
334
}
331
335
}
0 commit comments