Lines 100.00% 3 / 3
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 follow 100.00% 3 / 3 100.00% 1 / 1 3
10final readonly class AwayTracking
11{
12    /** @mago-expect lint:no-boolean-flag-parameter */
13    public static function follow(bool $away, Event $event, Identity $me): bool
14    {
15        if ($event instanceof PlayerAwayUpdatedEvent && $me->is($event->name)) {
16            return $event->away;
17        }
18
19        return $away;
20    }
21}