I am changing some string concatenations to sprintf() routines because they are more readable and safer. [skip ci]

This commit is contained in:
James Cole
2016-11-03 21:54:07 +01:00
parent 7bc4c6d115
commit 1d15bc0b10
5 changed files with 14 additions and 15 deletions

View File

@@ -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 '';