Code cleanup.

This commit is contained in:
James Cole
2021-03-28 11:43:07 +02:00
parent 5abbb8a807
commit 2c575f3ca5
379 changed files with 304 additions and 1727 deletions

View File

@@ -61,8 +61,6 @@ class BoxController extends Controller
$opsRepository = app(OperationsRepositoryInterface::class);
/** @var AvailableBudgetRepositoryInterface $abRepository */
$abRepository = app(AvailableBudgetRepositoryInterface::class);
/** @var Carbon $start */
$start = session('start', Carbon::now()->startOfMonth());
/** @var Carbon $end */
@@ -127,8 +125,6 @@ class BoxController extends Controller
return response()->json($return);
}
/**
* Current total balance.
*
@@ -209,8 +205,6 @@ class BoxController extends Controller
'size' => count($sums),
'preferred' => $currency->id,
];
$cache->store($response);
return response()->json($response);
@@ -256,8 +250,6 @@ class BoxController extends Controller
);
$netWorthSet = $netWorthHelper->getNetWorthByCurrency($filtered, $date);
$return = [];
foreach ($netWorthSet as $data) {
/** @var TransactionCurrency $currency */