From 2ddacf48d4b55abe9f5e1a67649eaf774cf3ffd8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 18 Feb 2016 10:12:07 +0100 Subject: [PATCH] Removed unused parameter and added caching. [skip ci] --- app/Http/Controllers/Chart/ReportController.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.php index 288bda6cb9..f42b689eca 100644 --- a/app/Http/Controllers/Chart/ReportController.php +++ b/app/Http/Controllers/Chart/ReportController.php @@ -37,15 +37,14 @@ class ReportController extends Controller * This chart, by default, is shown on the multi-year and year report pages, * which means that giving it a 2 week "period" should be enough granularity. * - * @param ReportQueryInterface $query - * @param string $reportType - * @param Carbon $start - * @param Carbon $end - * @param Collection $accounts + * @param string $reportType + * @param Carbon $start + * @param Carbon $end + * @param Collection $accounts * * @return \Illuminate\Http\JsonResponse */ - public function netWorth(ReportQueryInterface $query, string $reportType, Carbon $start, Carbon $end, Collection $accounts) + public function netWorth(string $reportType, Carbon $start, Carbon $end, Collection $accounts) { bcscale(2); // chart properties for cache: @@ -75,7 +74,7 @@ class ReportController extends Controller } $data = $this->generator->netWorth($entries); - //$cache->store($data); + $cache->store($data); return Response::json($data); }