mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Code cleanup that (hopefully) matches style CI
This commit is contained in:
@@ -73,7 +73,7 @@ class ExchangeController extends Controller
|
||||
$return['amount'] = null;
|
||||
if (null !== $request->get('amount')) {
|
||||
// assume amount is in "from" currency:
|
||||
$return['amount'] = bcmul($request->get('amount'), (string)$rate->rate, 12);
|
||||
$return['amount'] = bcmul($request->get('amount'), (string) $rate->rate, 12);
|
||||
// round to toCurrency decimal places:
|
||||
$return['amount'] = round($return['amount'], $toCurrency->decimal_places);
|
||||
}
|
||||
|
Reference in New Issue
Block a user