mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Code cleanup
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user