get() as $record) { if (str_contains((string) $record->record_id, '/')) { continue; } try { $id = RrsetId::for((string) $record->fqdn, (string) $record->type); } catch (Throwable) { // Outside the configured zone, or no zone configured at all. // Left exactly as it is — see the class comment. continue; } $record->update(['record_id' => $id]); $rewritten++; } return $rewritten; } }