Expand tests, do code cleanup.

This commit is contained in:
James Cole
2017-12-17 14:30:53 +01:00
parent b08af77c98
commit 78335e5814
141 changed files with 773 additions and 54 deletions

View File

@@ -81,6 +81,11 @@ class ReportController extends Controller
* @return \Illuminate\Http\JsonResponse
*
* @throws FireflyException
* @throws \Throwable
* @throws \Throwable
* @throws \Throwable
* @throws \Throwable
* @throws \Throwable
*/
public function general(Request $request)
{
@@ -119,6 +124,7 @@ class ReportController extends Controller
* @return string
*
* @throws FireflyException
* @throws \Throwable
*/
private function balanceAmount(array $attributes): string
{
@@ -156,7 +162,7 @@ class ReportController extends Controller
*
* @return string
*
* @throws FireflyException
* @throws \Throwable
*/
private function budgetSpentAmount(array $attributes): string
{
@@ -170,11 +176,11 @@ class ReportController extends Controller
/**
* Returns all expenses in category in range.
*
* @param $attributes
* @param array $attributes
*
* @return string
*
* @throws FireflyException
* @throws \Throwable
*/
private function categoryEntry(array $attributes): string
{
@@ -188,11 +194,11 @@ class ReportController extends Controller
/**
* Returns all the expenses that went to the given expense account.
*
* @param $attributes
* @param array $attributes
*
* @return string
*
* @throws FireflyException
* @throws \Throwable
*/
private function expenseEntry(array $attributes): string
{
@@ -206,11 +212,11 @@ class ReportController extends Controller
/**
* Returns all the incomes that went to the given asset account.
*
* @param $attributes
* @param array $attributes
*
* @return string
*
* @throws FireflyException
* @throws \Throwable
*/
private function incomeEntry(array $attributes): string
{