Clean up code and comments.

This commit is contained in:
James Cole
2023-02-22 18:14:14 +01:00
parent e6dc881f56
commit e421b29b01
249 changed files with 647 additions and 1044 deletions

View File

@@ -53,11 +53,11 @@ class CurrencyUpdateService
}
if (array_key_exists('enabled', $data) && is_bool($data['enabled'])) {
$currency->enabled = (bool) $data['enabled'];
$currency->enabled = (bool)$data['enabled'];
}
if (array_key_exists('decimal_places', $data) && is_int($data['decimal_places'])) {
$currency->decimal_places = (int) $data['decimal_places'];
$currency->decimal_places = (int)$data['decimal_places'];
}
$currency->save();