Skip to content
Snippets Groups Projects

Issue #3206736: Coding standards

2 files
+ 1
7
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -137,5 +137,5 @@ function commerce_dps_reverse_txn_type($txn_type) {
function commerce_dps_format_amount($amount, $currency_code = 'NZD') {
$currency = commerce_currency_load($currency_code);
$decimals = isset($currency['decimals']) ? $currency['decimals'] : 2;
return number_format($amount, 2, '.', '');
return number_format($amount, $decimals, '.', '');
}
\ No newline at end of file
Loading