From 9af8ddd8e446d6cca313a5a13a56b53e23f00f5c Mon Sep 17 00:00:00 2001 From: Adam Wood <72983627+webmaster-cses-org-uk@users.noreply.github.com> Date: Sun, 3 Jul 2022 03:53:41 +0100 Subject: [PATCH] Correct indentation Change indentation from 4 spaces to 2, per standards. --- api/v3/utils.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 9e55e60c31..c6a2db6c49 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -1451,14 +1451,14 @@ function _civicrm_api3_custom_data_get(&$returnArray, $checkPermission, $entity, $returnArray['custom_' . $id . '_id'] = $returnArray[$key . '_id'] = $val; if (is_array($val)) { - $lookupValues = []; - foreach ($val as $contactId) { - $lookupValues[] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $contactId, 'sort_name'); - } - $returnArray['custom_' . $id] = $returnArray[$key] = $lookupValues; + $lookupValues = []; + foreach ($val as $contactId) { + $lookupValues[] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $contactId, 'sort_name'); + } + $returnArray['custom_' . $id] = $returnArray[$key] = $lookupValues; } else { - $returnArray['custom_' . $id] = $returnArray[$key] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $val, 'sort_name'); + $returnArray['custom_' . $id] = $returnArray[$key] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $val, 'sort_name'); } } } -- 2.25.1