mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Code cleaning stuff.
This commit is contained in:
@@ -168,7 +168,7 @@ class CategoryController extends Controller
|
||||
$cache->addProperty($end);
|
||||
$cache->addProperty('chart.category.frontpage');
|
||||
if ($cache->has()) {
|
||||
//return response()->json($cache->get()); // @codeCoverageIgnore
|
||||
return response()->json($cache->get()); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
// currency repos:
|
||||
@@ -186,8 +186,8 @@ class CategoryController extends Controller
|
||||
foreach ($categories as $category) {
|
||||
$spentArray = $repository->spentInPeriodPerCurrency(new Collection([$category]), $accounts, $start, $end);
|
||||
foreach ($spentArray as $categoryId => $spentInfo) {
|
||||
foreach($spentInfo['spent'] as $currencyId => $row) {
|
||||
$spent= $row['spent'];
|
||||
foreach ($spentInfo['spent'] as $currencyId => $row) {
|
||||
$spent = $row['spent'];
|
||||
if (bccomp($spent, '0') === -1) {
|
||||
$currencies[$currencyId] = $currencies[$currencyId] ?? $currencyRepository->findNull((int)$currencyId);
|
||||
$tempData[] = [
|
||||
|
Reference in New Issue
Block a user