mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup before release.
This commit is contained in:
@@ -41,6 +41,7 @@ use Symfony\Component\HttpFoundation\ParameterBag;
|
||||
*/
|
||||
class AccountTransformer extends TransformerAbstract
|
||||
{
|
||||
/** @noinspection ClassOverridesFieldOfSuperClassInspection */
|
||||
/**
|
||||
* List of resources possible to include.
|
||||
*
|
||||
@@ -180,7 +181,7 @@ class AccountTransformer extends TransformerAbstract
|
||||
if ($type === AccountType::ASSET) {
|
||||
/** @var AccountRepositoryInterface $repository */
|
||||
$repository = app(AccountRepositoryInterface::class);
|
||||
$repository->setuser($account->user);
|
||||
$repository->setUser($account->user);
|
||||
$amount = $repository->getOpeningBalanceAmount($account);
|
||||
$openingBalance = is_null($amount) ? null : round($amount, $decimalPlaces);
|
||||
$openingBalanceDate = $repository->getOpeningBalanceDate($account);
|
||||
|
||||
Reference in New Issue
Block a user