mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Code cleanup
This commit is contained in:
@@ -60,9 +60,9 @@ class RuleGroup extends Model
|
||||
public static function routeBinder(string $value): RuleGroup
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$ruleGroupId = intval($value);
|
||||
$ruleGroupId = (int)$value;
|
||||
$ruleGroup = auth()->user()->ruleGroups()->find($ruleGroupId);
|
||||
if (!is_null($ruleGroup)) {
|
||||
if (null !== $ruleGroup) {
|
||||
return $ruleGroup;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user