[NFC] comment fixes
authoreileen <emcnaughton@wikimedia.org>
Tue, 3 Sep 2019 01:47:36 +0000 (13:47 +1200)
committereileen <emcnaughton@wikimedia.org>
Tue, 3 Sep 2019 01:47:36 +0000 (13:47 +1200)
CRM/Event/BAO/Event.php
api/v3/Event.php

index e77244bef1f0b5eeeb16ee436942b51e45411ec1..1faee2327961fb2fb61793c13a097a0cc8dc8034 100644 (file)
@@ -948,6 +948,7 @@ WHERE civicrm_event.is_active = 1
 
     $blockCopyOfCustomValue = (!empty($params['custom']));
 
+    /** @var \CRM_Event_DAO_Event $copyEvent */
     $copyEvent = CRM_Core_DAO::copyGeneric('CRM_Event_DAO_Event',
       ['id' => $id],
       // since the location is sharable, lets use the same loc_block_id.
index b3dbd7adcddc5658a359fdf6978eb76d6c5aff23..8f30864e469517c5052327de05f9870aace05221 100644 (file)
@@ -40,6 +40,8 @@
  *
  * @return array
  *   API result Array.
+ * @throws \CRM_Core_Exception
+ * @throws \API_Exception
  */
 function civicrm_api3_event_create($params) {
   // Required fields for creating an event