INFRA-132 - Batch #1
[civicrm-core.git] / CRM / UF / Page / ProfileEditor.php
index 73d6f3bf69824930634d9e6b5ca894d425f008ec..0e5a84782b6ff0de4471ab6308c456c9e887877b 100644 (file)
@@ -19,7 +19,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
     $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'),
@@ -189,7 +189,8 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
    *   A string to use in section headers.
    * @param array $availableFields
    *   List of fields that are allowed in profiles, e.g. $availableFields['my_field']['field_type'].
-   * @return array with keys 'sections' and 'schema'
+   * @return array
+   *   with keys 'sections' and 'schema'
    * @see js/model/crm.core.js
    * @see js/model/crm.mappedcore.js
    */
@@ -209,7 +210,8 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
         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;
@@ -227,7 +229,8 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
       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;
       }
     }