From 4f9f6ede3e75144a01cbc01b9d12b6d11bd2674a Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Tue, 14 Apr 2015 20:49:46 +0200 Subject: [PATCH] change to camelCase naming --- CRM/Contact/BAO/Relationship.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index b3b87e6cb5..7dd3825eb7 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -52,13 +52,13 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { */ public static function create(&$params) { - $extended_params = self::loadExistingRelationshipDetails($params); + $extendedParams = self::loadExistingRelationshipDetails($params); // When id is specified we always wan't to update, so we don't need to // check for duplicate relations. - if (!isset($params['id']) && self::checkDuplicateRelationship($extended_params, $extended_params['contact_id_a'], $extended_params['contact_id_b'], CRM_Utils_Array::value('id', $extended_params, 0))) { + if (!isset($params['id']) && self::checkDuplicateRelationship($extendedParams, $extendedParams['contact_id_a'], $extendedParams['contact_id_b'], CRM_Utils_Array::value('id', $extendedParams, 0))) { throw new CRM_Core_Exception('Duplicate Relationship'); } - $params = $extended_params; + $params = $extendedParams; if (self::checkValidRelationship($params, $params, 0)) { throw new CRM_Core_Exception('Invalid Relationship'); } -- 2.25.1