Api docblock cleanup.
[civicrm-core.git] / api / v3 / Domain.php
index e06da4281125f6164e5d0d9cf367c7915af5e38c..baa367524ae41e35ee37731bfa6d241b9d600234 100644 (file)
  */
 
 /**
- * File for the CiviCRM APIv3 domain functions
+ * This api exposes CiviCRM domain.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Domain
- *
- * @copyright CiviCRM LLC (c) 2004-2014
- * @version $Id: Domain.php 30171 2010-10-14 09:11:27Z mover $
- *
  */
 
 /**
- * Get CiviCRM domain details
- * {@getfields domain_create}
- * @example DomainGet.php
+ * Get CiviCRM domain details.
+ *
  * @param array $params
+ *
  * @return array
  * @throws \API_Exception
  */
@@ -86,11 +81,11 @@ function civicrm_api3_domain_get($params) {
           CRM_Utils_Array::value(
             'phone_type_id',
           $values['location']['phone'][1]
-        )
+          )
           ),
           'phone' => CRM_Utils_Array::value(
           'phone',
-        $values['location']['phone'][1]
+          $values['location']['phone'][1]
           ),
         );
       }
@@ -114,24 +109,23 @@ function civicrm_api3_domain_get($params) {
 }
 
 /**
- * Adjust Metadata for Get action
+ * Adjust Metadata for Get action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
  *
- * The metadata is used for setting defaults, documentation & validation
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_domain_get_spec(&$params) {
   $params['current_domain'] = array('title' => "get loaded domain");
 }
 
 /**
- * Create a new domain
+ * Create a new domain.
  *
  * @param array $params
  *
  * @return array
- * @example DomainCreate.php
- * {@getfields domain_create}
  */
 function civicrm_api3_domain_create($params) {
   $params['version'] = $params['domain_version'];
@@ -139,11 +133,12 @@ function civicrm_api3_domain_create($params) {
 }
 
 /**
- * Adjust Metadata for Create action
+ * Adjust Metadata for Create action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
  *
- * The metadata is used for setting defaults, documentation & validation
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_domain_create_spec(&$params) {
   $params['domain_version'] = $params['version'];