Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix phpstan issues.
James Cole48c487d64c11
diff --git a/app/Http/Controllers/Account/IndexController.php b/app/Http/Controllers/Account/IndexController.phpindex d0ebe7db5b..1308d16916 100644--- a/app/Http/Controllers/Account/IndexController.php+++ b/app/Http/Controllers/Account/IndexController.php@@ -24,8 +24,6 @@ declare(strict_types=1);namespace FireflyIII\Http\Controllers\Account;use FireflyIII\Http\Controllers\Controller;-use FireflyIII\Repositories\Account\AccountRepositoryInterface;-use FireflyIII\Support\Http\Controllers\BasicDataSupport;use Illuminate\Contracts\View\Factory;use Illuminate\View\View;use Psr\Container\ContainerExceptionInterface;@@ -36,9 +34,6 @@ use Psr\Container\NotFoundExceptionInterface;*/final class IndexController extends Controller{- use BasicDataSupport;-- private AccountRepositoryInterface $repository;/*** IndexController constructor.@@ -52,8 +47,6 @@ final class IndexController extends Controllerapp('view')->share('mainTitleIcon', 'bi-credit-card');app('view')->share('title', (string)trans('firefly.accounts'));- $this->repository = app(AccountRepositoryInterface::class);-return $next($request);});}@@ -94,14 +87,4 @@ final class IndexController extends Controller'subTitle' => $subTitle,]);}-- private function subtract(array $startBalances, array $endBalances): array- {- $result = [];- foreach ($endBalances as $key => $value) {- $result[$key] = bcsub((string)$value, $startBalances[$key] ?? '0');- }-- return $result;- }}