mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Clean up API code.
This commit is contained in:
@@ -269,12 +269,16 @@ class BudgetRepository implements BudgetRepositoryInterface
|
||||
/**
|
||||
* Find a budget or return NULL
|
||||
*
|
||||
* @param int $budgetId
|
||||
* @param int $budgetId |null
|
||||
*
|
||||
* @return Budget|null
|
||||
*/
|
||||
public function findNull(int $budgetId): ?Budget
|
||||
public function findNull(int $budgetId = null): ?Budget
|
||||
{
|
||||
if (null === $budgetId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->user->budgets()->find($budgetId);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user