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