Remove unused method.

This commit is contained in:
James Cole
2017-01-05 08:32:31 +01:00
parent 83f5f776a6
commit dbebfe7c07
2 changed files with 0 additions and 34 deletions

View File

@@ -103,31 +103,6 @@ class ReportHelper implements ReportHelperInterface
return $collection;
}
/**
* @param Carbon $start
* @param Carbon $end
* @param Collection $accounts
*
* @return CategoryCollection
*/
public function getCategoryReport(Collection $accounts, Carbon $start, Carbon $end): CategoryCollection
{
$object = new CategoryCollection;
/** @var CategoryRepositoryInterface $repository */
$repository = app(CategoryRepositoryInterface::class);
$categories = $repository->getCategories();
/** @var Category $category */
foreach ($categories as $category) {
$spent = $repository->spentInPeriod(new Collection([$category]), $accounts, $start, $end);
// CategoryCollection expects the amount in $spent:
$category->spent = $spent;
$object->addCategory($category);
}
return $object;
}
/**
* @param Carbon $date
*