@@ -27,11 +27,15 @@ class Currencysymbol
2727 protected $ _symbolsData = [];
2828
2929 /**
30+ * Store id
31+ *
3032 * @var string|null
3133 */
3234 protected $ _storeId ;
3335
3436 /**
37+ * Website id
38+ *
3539 * @var string|null
3640 */
3741 protected $ _websiteId ;
@@ -51,19 +55,19 @@ class Currencysymbol
5155 /**
5256 * Config path to custom currency symbol value
5357 */
54- public const XML_PATH_CUSTOM_CURRENCY_SYMBOL = 'currency/options/customsymbol ' ;
58+ const XML_PATH_CUSTOM_CURRENCY_SYMBOL = 'currency/options/customsymbol ' ;
5559
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 ;
5761
5862 /*
5963 * Separator used in config in allowed currencies list
6064 */
61- public const ALLOWED_CURRENCIES_CONFIG_SEPARATOR = ', ' ;
65+ const ALLOWED_CURRENCIES_CONFIG_SEPARATOR = ', ' ;
6266
6367 /**
6468 * Config currency section
6569 */
66- public const CONFIG_SECTION = 'currency ' ;
70+ const CONFIG_SECTION = 'currency ' ;
6771
6872 /**
6973 * Core event manager proxy
@@ -288,7 +292,7 @@ protected function _unserializeStoreConfig($configPath, $storeId = null)
288292 */
289293 protected function getAllowedCurrencies ()
290294 {
291- $ allowedCurrencies = [];
295+ $ allowedCurrencies = [[] ];
292296 $ allowedCurrencies [] = explode (
293297 self ::ALLOWED_CURRENCIES_CONFIG_SEPARATOR ,
294298 $ this ->_scopeConfig ->getValue (
@@ -326,6 +330,6 @@ protected function getAllowedCurrencies()
326330 }
327331 }
328332 }
329- return array_unique (array_merge ([], ...$ allowedCurrencies ));
333+ return array_unique (array_merge (...$ allowedCurrencies ));
330334 }
331335}
0 commit comments