mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Cleaning up.
This commit is contained in:
@@ -118,6 +118,7 @@ class Report implements ReportInterface
|
||||
/** @var \Account $account */
|
||||
foreach ($list as $account) {
|
||||
$id = intval($account->id);
|
||||
/** @noinspection PhpParamsInspection */
|
||||
$accounts[$id] = [
|
||||
'name' => $account->name,
|
||||
'startBalance' => \Steam::balance($account, $start),
|
||||
|
@@ -139,6 +139,7 @@ class ReportQuery implements ReportQueryInterface
|
||||
->get(['accounts.*']);
|
||||
$set->each(
|
||||
function (\Account $account) use ($start, $end) {
|
||||
/** @noinspection PhpParamsInspection */
|
||||
$account->startBalance = \Steam::balance($account, $start);
|
||||
$account->endBalance = \Steam::balance($account, $end);
|
||||
}
|
||||
|
Reference in New Issue
Block a user