mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix sonarcloud issues
This commit is contained in:
@@ -111,7 +111,6 @@ class BudgetController extends Controller
|
||||
$loopStart = app('navigation')->startOfPeriod($loopStart, $step);
|
||||
$currencies = [];
|
||||
$defaultEntries = [];
|
||||
// echo '<hr>';
|
||||
while ($end >= $loopStart) {
|
||||
/** @var Carbon $currentEnd */
|
||||
$loopEnd = app('navigation')->endOfPeriod($loopStart, $step);
|
||||
|
||||
@@ -85,8 +85,6 @@ class CategoryController extends Controller
|
||||
$start = app('navigation')->startOfPeriod($start, $range);
|
||||
$end = $this->getDate();
|
||||
|
||||
//Log::debug(sprintf('Full range is %s to %s', $start->format('Y-m-d'), $end->format('Y-m-d')));
|
||||
|
||||
/** @var WholePeriodChartGenerator $generator */
|
||||
$generator = app(WholePeriodChartGenerator::class);
|
||||
$chartData = $generator->generate($category, $start, $end);
|
||||
|
||||
@@ -64,61 +64,6 @@ class CategoryReportController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// /**
|
||||
// * Chart for expenses grouped by expense account.
|
||||
// *
|
||||
// * TODO this chart is not multi-currency aware.
|
||||
// *
|
||||
// * @param Collection $accounts
|
||||
// * @param Collection $categories
|
||||
// * @param Carbon $start
|
||||
// * @param Carbon $end
|
||||
// * @param string $others
|
||||
// *
|
||||
// * @return JsonResponse
|
||||
// */
|
||||
// public function accountExpense(Collection $accounts, Collection $categories, Carbon $start, Carbon $end, string $others): JsonResponse
|
||||
// {
|
||||
// /** @var MetaPieChartInterface $helper */
|
||||
// $helper = app(MetaPieChartInterface::class);
|
||||
// $helper->setAccounts($accounts)->setCategories($categories)->setStart($start)->setEnd($end)->setCollectOtherObjects(1 === (int)$others);
|
||||
//
|
||||
// $chartData = $helper->generate('expense', 'account');
|
||||
// $data = $this->generator->pieChart($chartData);
|
||||
//
|
||||
// return response()->json($data);
|
||||
// }
|
||||
|
||||
//
|
||||
// /**
|
||||
// * Chart for income grouped by revenue account.
|
||||
// *
|
||||
// * TODO this chart is not multi-currency aware.
|
||||
// *
|
||||
// * @param Collection $accounts
|
||||
// * @param Collection $categories
|
||||
// * @param Carbon $start
|
||||
// * @param Carbon $end
|
||||
// * @param string $others
|
||||
// *
|
||||
// * @return JsonResponse
|
||||
// */
|
||||
// public function accountIncome(Collection $accounts, Collection $categories, Carbon $start, Carbon $end, string $others): JsonResponse
|
||||
// {
|
||||
// /** @var MetaPieChartInterface $helper */
|
||||
// $helper = app(MetaPieChartInterface::class);
|
||||
// $helper->setAccounts($accounts);
|
||||
// $helper->setCategories($categories);
|
||||
// $helper->setStart($start);
|
||||
// $helper->setEnd($end);
|
||||
// $helper->setCollectOtherObjects(1 === (int)$others);
|
||||
// $chartData = $helper->generate('income', 'account');
|
||||
// $data = $this->generator->pieChart($chartData);
|
||||
//
|
||||
// return response()->json($data);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @param Collection $accounts
|
||||
* @param Collection $categories
|
||||
|
||||
Reference in New Issue
Block a user