mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 20:22:07 +00:00
Code cleanup
This commit is contained in:
@@ -57,9 +57,9 @@ class Rule extends Model
|
||||
public static function routeBinder(string $value): Rule
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$ruleId = intval($value);
|
||||
$ruleId = (int)$value;
|
||||
$rule = auth()->user()->rules()->find($ruleId);
|
||||
if (!is_null($rule)) {
|
||||
if (null !== $rule) {
|
||||
return $rule;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user