$loaded = TRUE;
CRM_Core_Resources::singleton()
- ->addSettingsFactory(function() {
+ ->addSettingsFactory(function () {
return array(
'PseudoConstant' => array(
'locationType' => CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id'),
case 'Household':
if ($field['field_type'] != $extends && $field['field_type'] != 'Contact'
//CRM-15595 check if subtype
- && !in_array($field['field_type'], CRM_Contact_BAO_ContactType::subTypes($extends))) {
+ && !in_array($field['field_type'], CRM_Contact_BAO_ContactType::subTypes($extends))
+ ) {
continue 2;
}
break;
if (in_array($fieldName, $locationFields)) {
$result['schema'][$fieldName]['civiIsLocation'] = TRUE;
}
- if (in_array($fieldName, array('phone', 'phone_and_ext'))) { // FIXME what about phone_ext?
+ if (in_array($fieldName, array('phone', 'phone_and_ext'))) {
+ // FIXME what about phone_ext?
$result['schema'][$fieldName]['civiIsPhone'] = TRUE;
}
}