Code cleanup

This commit is contained in:
James Cole
2018-04-28 06:23:13 +02:00
parent 6f0e1c79ac
commit 13b78bdc20
218 changed files with 621 additions and 681 deletions

View File

@@ -156,8 +156,7 @@ class BudgetRepository implements BudgetRepositoryInterface
* @param Budget $budget
*
* @return bool
*
* @throws \Exception
*/
public function destroy(Budget $budget): bool
{
@@ -569,7 +568,7 @@ class BudgetRepository implements BudgetRepositoryInterface
$set = $collector->getJournals();
return strval($set->sum('transaction_amount'));
return (string)$set->sum('transaction_amount');
}
/**
@@ -604,7 +603,7 @@ class BudgetRepository implements BudgetRepositoryInterface
}
);
return strval($set->sum('transaction_amount'));
return (string)$set->sum('transaction_amount');
}
/**
@@ -648,8 +647,7 @@ class BudgetRepository implements BudgetRepositoryInterface
* @param string $amount
*
* @return BudgetLimit
*
* @throws \Exception
*/
public function updateLimitAmount(Budget $budget, Carbon $start, Carbon $end, string $amount): BudgetLimit
{