INFRA-132 - Fix spacing of @return tag in comments
[civicrm-core.git] / api / v3 / Constant.php
index d49e767b511fce30a8eb7f015c978541f366c863..f113c467caf8c13b1af6d438ab0f1237226e780c 100644 (file)
@@ -38,7 +38,8 @@
 
 /**
  * @deprecated api notice
- * @return string to indicate this entire api entity is deprecated
+ * @return string
+   *   to indicate this entire api entity is deprecated
  */
 function _civicrm_api3_constant_deprecation() {
   return 'The constant api is deprecated as of CiviCRM 4.4. Please use the getoptions api action instead.';
@@ -126,9 +127,9 @@ function civicrm_api3_constant_get($params) {
     }
     return civicrm_api3_create_success($values, $params, 'constant');
   }
-  else{
+  else {
     $values = call_user_func(array('CRM_Utils_PseudoConstant', 'getConstant'), $name);
-    if(!empty($values)){
+    if (!empty($values)) {
       return civicrm_api3_create_success($values, $params, 'constant');
     }
   }
@@ -187,7 +188,7 @@ function _civicrm_api3_constant_get_spec(&$params) {
       'title' => 'Constant Name',
       'name' => 'name',
       'api.required' => 1,
-        'options' => array_combine($options, $options)
+        'options' => array_combine($options, $options),
       ))
   );
 }