Merge pull request #5097 from PalanteJon/CRM-15917
[civicrm-core.git] / CRM / Contact / Form / ProfileContact.php
index 8029c7a7f811d4a1744ea125c8e9722d492d5f67..9aaf558b931f264c031c48e2d8e367fd21a4edbd 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -37,7 +37,7 @@ class CRM_Contact_Form_ProfileContact {
   protected $_mode;
 
   /**
-   * Set variables up before form is built
+   * Set variables up before form is built.
    *
    * @param CRM_Core_Form $form
    *
@@ -78,7 +78,6 @@ class CRM_Contact_Form_ProfileContact {
    *
    * @param CRM_Core_Form $form
    *
-   * @static
    */
   public static function buildQuickForm(&$form) {
     $ufGroup = new CRM_Core_DAO_UFGroup();
@@ -89,11 +88,11 @@ class CRM_Contact_Form_ProfileContact {
 
     $prefix = 'honor';
     $honoreeProfileFields = CRM_Core_BAO_UFGroup::getFields($form->_honoreeProfileId, FALSE, NULL,
-        NULL, NULL,
-        FALSE, NULL,
-        TRUE, NULL,
-        CRM_Core_Permission::CREATE
-      );
+      NULL, NULL,
+      FALSE, NULL,
+      TRUE, NULL,
+      CRM_Core_Permission::CREATE
+    );
     $form->addElement('hidden', 'honoree_profile_id', $form->_honoreeProfileId);
     $form->assign('honoreeProfileFields', $honoreeProfileFields);
 
@@ -113,7 +112,7 @@ class CRM_Contact_Form_ProfileContact {
   public static function postProcess($form) {
     $params = $form->_params;
     if (!empty($form->_honor_block_is_active) && !empty($params['soft_credit_type_id'])) {
-      $honorId = null;
+      $honorId = NULL;
 
       //check if there is any duplicate contact
       $profileContactType = CRM_Core_BAO_UFGroup::getContactType($params['honoree_profile_id']);
@@ -155,4 +154,5 @@ class CRM_Contact_Form_ProfileContact {
       }
     }
   }
+
 }