* If true indicates, the address to be built in hcard-microformat standard.
* @param bool $mailing
* If true indicates, the call has been made from mailing label.
- * @param null $tokenFields
+ * @param string[] $tokenFields
*
* @return string
* formatted address string
'contact.contact_source' => $fields['contact_source'] ?? NULL,
'contact.external_identifier' => $fields['external_identifier'] ?? NULL,
'contact.contact_id' => $fields['id'] ?? NULL,
- 'contact.household_name' => $fields['display_name'] ?? NULL,
- 'contact.organization_name' => $fields['display_name'] ?? NULL,
+ 'contact.household_name' => $fields['household_name'] ?? NULL,
+ 'contact.organization_name' => $fields['organization_name'] ?? NULL,
'contact.legal_name' => $fields['legal_name'] ?? NULL,
'contact.preferred_communication_method' => $fields['preferred_communication_method'] ?? NULL,
'contact.communication_style' => $fields['communication_style'] ?? NULL,
}
/**
- * @param $format
+ * @param string $format
*
* @return array
*/