cs
This commit is contained in:
@@ -82,8 +82,7 @@ class CurrencyConverted implements Di\MetadataAware, Di\ConfigAware
|
||||
|
||||
if ($defaultCurrency === $currency) {
|
||||
$targetValue = $value;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$targetValue = $value;
|
||||
$targetValue = $targetValue / (isset($rates[$baseCurrency]) ? $rates[$baseCurrency] : 1.0);
|
||||
$targetValue = $targetValue * (isset($rates[$currency]) ? $rates[$currency] : 1.0);
|
||||
|
||||
@@ -62,8 +62,7 @@ class Webhook
|
||||
|
||||
if ($entity->isNew()) {
|
||||
$this->webhookManager->processCreate($entity);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$this->webhookManager->processUpdate($entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user