From e1df10daa71b431d078178a03ac0fb1d7ad2c9e3 Mon Sep 17 00:00:00 2001 From: Helena Date: Mon, 12 Oct 2015 11:01:13 +0100 Subject: [PATCH] code style fixed --- api/v3/Cxn.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/api/v3/Cxn.php b/api/v3/Cxn.php index 4bfa899701..d769fbd4b1 100644 --- a/api/v3/Cxn.php +++ b/api/v3/Cxn.php @@ -275,9 +275,9 @@ function civicrm_api3_cxn_create($params) { $dao = new CRM_Cxn_DAO_Cxn(); $dao->id = $cxnId; - if ($dao->find()) { + if ($dao->find()) { if (isset($params['is_active'])) { - $dao->is_active = (int)$params['is_active']; + $dao->is_active = (int) $params['is_active']; } if (isset($params['options'])) { $dao->options = $params['options']; @@ -285,14 +285,12 @@ function civicrm_api3_cxn_create($params) { $result = $dao->save(); } - else { - //TODO: create? - } } return civicrm_api3_create_success($result, $params, 'Cxn', 'create'); - } catch( Exception $ex){ + } + catch(Exception $ex){ throw $ex; } } -- 2.25.1