Merge remote-tracking branch 'upstream/4.5' into 4.5-4.6-2015-03-16-17-24-33
[civicrm-core.git] / tests / phpunit / CiviTest / Participant.php
index fdb0ffea6d59900c0788b2a4f7abd7f62d08e8ee..fd60bcf54b7e1d8f737bbb2fe1c0fbd3130abc97 100644 (file)
@@ -5,12 +5,13 @@
  */
 class Participant extends PHPUnit_Framework_Testcase {
   /**
-   * Helper function to create a Participant
+   * Helper function to create a Participant.
    *
    * @param int $contactId
    * @param int $eventId
    *
-   * @return mixed $participant id of created Participant
+   * @return int
+   *   id of created Participant
    */
   public static function create($contactId, $eventId) {
     $params = array(
@@ -31,14 +32,15 @@ class Participant extends PHPUnit_Framework_Testcase {
   }
 
   /**
-   * Helper function to delete a participant
+   * Helper function to delete a participant.
    *
    * @param int $participantId
-   * @return boolean
+   * @return bool
    *   true if participant deleted, false otherwise
    */
   public static function delete($participantId) {
     require_once 'CRM/Event/BAO/Participant.php';
     return CRM_Event_BAO_Participant::deleteParticipant($participantId);
   }
+
 }