foreach ($defaultCountryStateTranslations as $shortCode =>
$deTranslation) { if (!\
array_key_exists($shortCode,
$correctDeTranslations)) { continue;
} $defaultCountryStateTranslations[$shortCode] =
$correctDeTranslations[$shortCode];
} } $this->
swapDefaultLanguageId($newDefaultLanguageId);
$this->
addMissingCountryStates($defaultCountryStateTranslations);
} else { $this->
changeDefaultLanguageData($newDefaultLanguageId,
$currentLocale,
$locale);
} } public function setDefaultCurrency(string
$currencyCode): void
{ $currentCurrencyIso =
$this->connection->
fetchOne( 'SELECT iso_code FROM currency WHERE id = :currencyId',
['currencyId' => Uuid::
fromHexToBytes(Defaults::CURRENCY
)] );