Various code cleanup.

This commit is contained in:
James Cole
2021-05-24 08:50:17 +02:00
parent 3ec9753808
commit 815fd5ff6b
135 changed files with 643 additions and 582 deletions

View File

@@ -146,11 +146,10 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
}
/**
* @param Carbon $start
* @param Carbon $end
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*
*/
public function getAllBudgetLimits(Carbon $start = null, Carbon $end = null): Collection
{
@@ -216,8 +215,8 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
/**
* @param TransactionCurrency $currency
* @param Carbon $start
* @param Carbon $end
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*/
@@ -231,12 +230,11 @@ class BudgetLimitRepository implements BudgetLimitRepositoryInterface
}
/**
* @param Budget $budget
* @param Carbon $start
* @param Carbon $end
* @param Budget $budget
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*
*/
public function getBudgetLimits(Budget $budget, Carbon $start = null, Carbon $end = null): Collection
{

View File

@@ -74,8 +74,8 @@ interface BudgetLimitRepositoryInterface
/**
* TODO this method is not multi-currency aware.
*
* @param Carbon $start
* @param Carbon $end
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*/
@@ -83,17 +83,17 @@ interface BudgetLimitRepositoryInterface
/**
* @param TransactionCurrency $currency
* @param Carbon $start
* @param Carbon $end
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*/
public function getAllBudgetLimitsByCurrency(TransactionCurrency $currency, Carbon $start = null, Carbon $end = null): Collection;
/**
* @param Budget $budget
* @param Carbon $start
* @param Carbon $end
* @param Budget $budget
* @param Carbon|null $start
* @param Carbon|null $end
*
* @return Collection
*/

View File

@@ -160,7 +160,7 @@ class BudgetRepository implements BudgetRepositoryInterface
/**
* Find a budget or return NULL
*
* @param int $budgetId |null
* @param int|null $budgetId |null
*
* @return Budget|null
*/
@@ -179,8 +179,7 @@ class BudgetRepository implements BudgetRepositoryInterface
*
* @param Budget $budget
*
* @return Carbon
*
* @return Carbon|null
*/
public function firstUseDate(Budget $budget): ?Carbon
{

View File

@@ -88,7 +88,7 @@ interface BudgetRepositoryInterface
*
* @param Budget $budget
*
* @return Carbon
* @return Carbon|null
*/
public function firstUseDate(Budget $budget): ?Carbon;