@php /** @var array{badge: string, debug_badge?: string, mode: string, mode_detail: string, checks?: list, lines: list, match_tips: list, aria: string} $hint */ $checks = $hint['checks'] ?? []; if ($checks === [] && ! empty($hint['lines'])) { foreach ($hint['lines'] as $line) { $parts = explode(': ', (string) $line, 2); $checks[] = [ 'label' => $parts[0] ?? 'Note', 'value' => $parts[1] ?? (string) $line, ]; } } @endphp