X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FBAO%2FParticipantStatusType.php;h=db5f33ea1f8febb96ee014091299c0a797cca397;hb=e9b0c2a705c021d2a96ee331e97048bb9cad5db5;hp=86439c42a723a15daed575e10897c65cdea32870;hpb=d36b8b20ac964dc3c0a74f98f580dc7b0ad7383e;p=civicrm-core.git diff --git a/CRM/Event/BAO/ParticipantStatusType.php b/CRM/Event/BAO/ParticipantStatusType.php index 86439c42a7..db5f33ea1f 100644 --- a/CRM/Event/BAO/ParticipantStatusType.php +++ b/CRM/Event/BAO/ParticipantStatusType.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -36,13 +36,13 @@ class CRM_Event_BAO_ParticipantStatusType extends CRM_Event_DAO_ParticipantStatu /** * @param array $params * - * @return $this|null + * @return this|null */ public static function add(&$params) { if (empty($params)) { return NULL; } - $dao = new CRM_Event_DAO_ParticipantStatusType; + $dao = new CRM_Event_DAO_ParticipantStatusType(); $dao->copyValues($params); return $dao->save(); } @@ -50,7 +50,7 @@ class CRM_Event_BAO_ParticipantStatusType extends CRM_Event_DAO_ParticipantStatu /** * @param array $params * - * @return $this|null + * @return this|null */ public static function &create(&$params) { $transaction = new CRM_Core_Transaction(); @@ -70,7 +70,7 @@ class CRM_Event_BAO_ParticipantStatusType extends CRM_Event_DAO_ParticipantStatu */ public static function deleteParticipantStatusType($id) { // return early if there are participants with this status - $participant = new CRM_Event_DAO_Participant; + $participant = new CRM_Event_DAO_Participant(); $participant->status_id = $id; if ($participant->find()) { return FALSE; @@ -78,7 +78,7 @@ class CRM_Event_BAO_ParticipantStatusType extends CRM_Event_DAO_ParticipantStatu CRM_Utils_Weight::delWeight('CRM_Event_DAO_ParticipantStatusType', $id); - $dao = new CRM_Event_DAO_ParticipantStatusType; + $dao = new CRM_Event_DAO_ParticipantStatusType(); $dao->id = $id; $dao->find(TRUE); $dao->delete(); @@ -94,7 +94,7 @@ class CRM_Event_BAO_ParticipantStatusType extends CRM_Event_DAO_ParticipantStatu public static function retrieve(&$params, &$defaults) { $result = NULL; - $dao = new CRM_Event_DAO_ParticipantStatusType; + $dao = new CRM_Event_DAO_ParticipantStatusType(); $dao->copyValues($params); if ($dao->find(TRUE)) { CRM_Core_DAO::storeValues($dao, $defaults); @@ -321,4 +321,5 @@ LEFT JOIN civicrm_event event ON ( event.id = participant.event_id ) return array('is_error' => 0, 'messages' => $returnMessages); } + }