Merge pull request #4880 from totten/master-cs3
[civicrm-core.git] / api / v3 / Constant.php
index d49e767b511fce30a8eb7f015c978541f366c863..f9c96b894c3237c81c44d29f4d2815d4c8265d2e 100644 (file)
@@ -126,9 +126,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 +187,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),
       ))
   );
 }