mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Remove unused methods.
This commit is contained in:
@@ -77,13 +77,13 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
|
||||
/**
|
||||
* @param int $ruleGroupId
|
||||
*
|
||||
* @return RuleGroup
|
||||
* @return RuleGroup|null
|
||||
*/
|
||||
public function find(int $ruleGroupId): RuleGroup
|
||||
public function find(int $ruleGroupId): ?RuleGroup
|
||||
{
|
||||
$group = $this->user->ruleGroups()->find($ruleGroupId);
|
||||
if (null === $group) {
|
||||
return new RuleGroup;
|
||||
return null;
|
||||
}
|
||||
|
||||
return $group;
|
||||
|
||||
Reference in New Issue
Block a user