mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Code cleaning stuff.
This commit is contained in:
@@ -257,7 +257,7 @@ class BoxController extends Controller
|
||||
|
||||
/** @var AccountRepositoryInterface $accountRepository */
|
||||
$accountRepository = app(AccountRepositoryInterface::class);
|
||||
$allAccounts = $accountRepository->getActiveAccountsByType(
|
||||
$allAccounts = $accountRepository->getActiveAccountsByType(
|
||||
[AccountType::DEFAULT, AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE, AccountType::CREDITCARD]
|
||||
);
|
||||
Log::debug(sprintf('Found %d accounts.', $allAccounts->count()));
|
||||
@@ -281,7 +281,7 @@ class BoxController extends Controller
|
||||
$return = [];
|
||||
foreach ($netWorthSet as $index => $data) {
|
||||
/** @var TransactionCurrency $currency */
|
||||
$currency = $data['currency'];
|
||||
$currency = $data['currency'];
|
||||
$return[$currency->id] = app('amount')->formatAnything($currency, $data['balance'], false);
|
||||
}
|
||||
$return = [
|
||||
|
Reference in New Issue
Block a user