INFRA-132 - CRM/Event - phpcbf
[civicrm-core.git] / CRM / Event / BAO / ParticipantPayment.php
index 555df5dd25a36a523cef8d4e452da1f88bd0add0..8e8c59682d8cef78054d1efd51c65d6d9b1764e6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -38,13 +38,15 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment
   /**
    * Creates or updates a participant payment record
    *
-   * @param $params array of values to initialize the record with
-   * @param $ids    array with one values of id for this participantPayment record (for update)
+   * @param $params
+   *   Array of values to initialize the record with.
+   * @param $ids
+   *   Array with one values of id for this participantPayment record (for update).
    *
    * @return object the partcipant payment record
    * @static
    */
-  static function create(&$params, &$ids) {
+  public static function create(&$params, &$ids) {
     if (isset($ids['id'])) {
       CRM_Utils_Hook::pre('edit', 'ParticipantPayment', $ids['id'], $params);
     }
@@ -56,7 +58,7 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment
     $participantPayment->copyValues($params);
     if (isset($ids['id'])) {
       $participantPayment->id = CRM_Utils_Array::value('id', $ids);
-  }
+    }
     else {
       $participantPayment->find(TRUE);
     }
@@ -86,13 +88,13 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment
    * Delete the record that are associated with this ParticipantPayment
    * Also deletes the associated contribution for this participant
    *
-   * @param  array  $params   associative array whose values match the record to be deleted
+   * @param array $params
+   *   Associative array whose values match the record to be deleted.
    *
    * @return boolean  true if deleted false otherwise
    * @static
-   * @access public
    */
-  static function deleteParticipantPayment($params) {
+  public static function deleteParticipantPayment($params) {
     $participantPayment = new CRM_Event_DAO_ParticipantPayment();
 
     $valid = FALSE;
@@ -117,4 +119,3 @@ class CRM_Event_BAO_ParticipantPayment extends CRM_Event_DAO_ParticipantPayment
     return FALSE;
   }
 }
-