mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 16:10:00 +00:00
I am changing some string concatenations to sprintf() routines because they are more readable and safer. [skip ci]
This commit is contained in:
@@ -125,7 +125,7 @@ class Transaction extends Twig_Extension
|
||||
&& bccomp($amount, bcmul($transactionAmount, '-1')) !== 0
|
||||
) {
|
||||
// not equal?
|
||||
return ' (' . Amount::formatWithCode($code, $amount, true) . ')';
|
||||
return sprintf(' (%s)', Amount::formatWithCode($code, $amount, true));
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user