@@ -21,7 +21,7 @@ public function execute(Device $device, array $results): bool
2121 $ connectivity = new ConnectivityHelper ($ device );
2222
2323 // Determine which sources are currently enabled on this device
24- $ enabled = collect (['icmp ' , 'snmp ' ])->filter (fn ($ source ) => $ connectivity ->{"{$ source }IsEnabled " }());
24+ $ enabled = collect (['icmp ' , 'snmp ' ])->filter (fn ($ source ) => $ connectivity ->{"{$ source }IsEnabled " }());
2525
2626 // Normalize keys: AvailabilitySource enum values or plain strings
2727 $ checked = collect ($ results )->mapWithKeys (function ($ passed , $ source ) {
@@ -31,11 +31,11 @@ public function execute(Device $device, array $results): bool
3131 });
3232
3333 // Previously failing sources that weren't checked this run are still considered failing
34- $ previously_failed = collect (explode (', ' , (string ) $ device ->status_reason ))->map (fn ($ s ) => trim ($ s ))->filter ();
34+ $ previously_failed = collect (explode (', ' , (string ) $ device ->status_reason ))->map (fn ($ s ) => trim ($ s ))->filter ();
3535 $ unchecked_failures = $ previously_failed ->diff ($ checked ->keys ());
3636
3737 // A source is failing if it failed in this run, or was previously failing and wasn't re-checked
38- $ failing = $ checked ->filter (fn ($ passed ) => ! $ passed )->keys ()->merge ($ unchecked_failures );
38+ $ failing = $ checked ->filter (fn ($ passed ) => ! $ passed )->keys ()->merge ($ unchecked_failures );
3939
4040 // Only report failures for sources that are currently enabled
4141 $ failed_sources = $ failing ->intersect ($ enabled )->sort ()->values ();
0 commit comments