mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Code clean up in Handlers.
This commit is contained in:
@@ -90,7 +90,7 @@ class ChartJsGenerator implements GeneratorInterface
|
||||
if (isset($set['currency_symbol'])) {
|
||||
$currentSet['currency_symbol'] = $set['currency_symbol'];
|
||||
}
|
||||
if(isset($set['backgroundColor'])) {
|
||||
if (isset($set['backgroundColor'])) {
|
||||
$currentSet['backgroundColor'] = $set['backgroundColor'];
|
||||
}
|
||||
$chartData['datasets'][] = $currentSet;
|
||||
|
||||
@@ -216,9 +216,9 @@ class MonthReportGenerator implements ReportGeneratorInterface
|
||||
$transactionAmount = $transaction->transaction_foreign_amount;
|
||||
}
|
||||
|
||||
$newBalance = bcadd($startBalance, $transactionAmount);
|
||||
$transaction->after = $newBalance;
|
||||
$startBalance = $newBalance;
|
||||
$newBalance = bcadd($startBalance, $transactionAmount);
|
||||
$transaction->after = $newBalance;
|
||||
$startBalance = $newBalance;
|
||||
}
|
||||
|
||||
$return = [
|
||||
|
||||
Reference in New Issue
Block a user