Merge pull request #5182 from colemanw/Cleanup
[civicrm-core.git] / tests / phpunit / CiviTest / Event.php
index cdb44ac0c9e0e8b026432c1a55c1491b576a62f6..a8d8ce6e3449466193024fe240d16ae34eef7767 100644 (file)
@@ -10,9 +10,10 @@ class Event extends PHPUnit_Framework_Testcase {
    *
    * @param int $contactId
    *
-   * @return mixed $event id of created Event
+   * @return int
+   *   id of created Event
    */
-  static function create($contactId) {
+  public static function create($contactId) {
     require_once "CRM/Event/BAO/Event.php";
     $params = array(
       'title' => 'Test Event',
@@ -28,21 +29,19 @@ class Event extends PHPUnit_Framework_Testcase {
       'contact_id' => $contactId,
     );
 
-
     $event = CRM_Event_BAO_Event::create($params);
     return $event->id;
   }
 
   /**
-   * Helper function to delete an Event
+   * Helper function to delete an Event.
    *
    * @param int $eventId
-   * @return boolean true if event deleted, false otherwise
+   * @return bool
+   *   true if event deleted, false otherwise
    */
-  static function delete($eventId) {
+  public static function delete($eventId) {
     return CRM_Event_BAO_Event::del($eventId);
   }
-}
-
-
 
+}