health(); $this->line('Scanner: '.($health['engine'])); $this->line('Available: '.($health['available'] ? 'yes' : 'no')); $this->line('Engine version: '.($health['engine_version'] ?? 'unavailable')); $this->line('Signatures UTC: '.($health['signatures_at']?->format(DATE_ATOM) ?? 'unavailable')); $this->line('Signature age hours: '.($health['signature_age_hours'] === null ? 'unavailable' : number_format($health['signature_age_hours'], 2))); if (! $health['available']) { $this->error('Reason: '.($health['reason_code'] ?? 'scanner_unavailable')); return self::FAILURE; } return self::SUCCESS; } }