mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Remove unused methods.
This commit is contained in:
@@ -68,13 +68,13 @@ class RuleRepository implements RuleRepositoryInterface
|
||||
/**
|
||||
* @param int $ruleId
|
||||
*
|
||||
* @return Rule
|
||||
* @return Rule|null
|
||||
*/
|
||||
public function find(int $ruleId): Rule
|
||||
public function find(int $ruleId): ?Rule
|
||||
{
|
||||
$rule = $this->user->rules()->find($ruleId);
|
||||
if (null === $rule) {
|
||||
return new Rule;
|
||||
return null;
|
||||
}
|
||||
|
||||
return $rule;
|
||||
|
||||
Reference in New Issue
Block a user