From cf6e3b82f92ffb3d602276a38e575e15b5585b3f Mon Sep 17 00:00:00 2001 From: Shane Watters Date: Mon, 22 Apr 2024 09:39:38 +1200 Subject: [PATCH] Fixing conflicts in UbiquityService class. --- src/Services/UbiquityService.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/Services/UbiquityService.php b/src/Services/UbiquityService.php index 9c90b63..6d5d105 100755 --- a/src/Services/UbiquityService.php +++ b/src/Services/UbiquityService.php @@ -1,20 +1,14 @@ >>>>>> 9ffaf6d (SS5 upgrade) class UbiquityService { @@ -171,11 +165,7 @@ public function call($method = null, string $uri = null, $query = null, $data = $options = $this->getDefaultOptions(); -<<<<<<< HEAD if ($query && is_array($query)) { -======= - if ($query) { ->>>>>>> 9ffaf6d (SS5 upgrade) $options['query'] = array_merge($options['query'], $query); } @@ -204,11 +194,7 @@ public function getContact($params) } // get the email address submitted -<<<<<<< HEAD $email = (isset($params['value'])) ? $params['value'] : null; -======= - $email = (isset($emailData['value'])) ? $emailData['value'] : null; ->>>>>>> 9ffaf6d (SS5 upgrade) // check the email address is valid if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) { @@ -219,10 +205,6 @@ public function getContact($params) 'filter' => $this->buildFilterQueryString(array($params)) ]; -<<<<<<< HEAD -======= - //self::get()? ->>>>>>> 9ffaf6d (SS5 upgrade) $response = $this->call(self::METHOD_GET, 'database/contacts', $query); if ($response->getStatusCode() !== 200) { @@ -270,8 +252,6 @@ public function getEmailData(array $data) } /** -<<<<<<< HEAD -======= * @param $fields SS_List list of fields assigned an ubiquity ID * @param $options SS_List list of EditableOption assigned an ubiquity ID * @param $data Array submitted data (merged with source data) @@ -322,7 +302,6 @@ public function createOrUpdateContact($data) } /** ->>>>>>> 9ffaf6d (SS5 upgrade) * Send data to a Ubiquity Form * Usually to trigger an email being sent from their end. */ @@ -404,8 +383,6 @@ public function filterUpdateData($data, $contact) return array_values($updatedData); } -<<<<<<< HEAD -======= /** * Determine if ubiquity analytis is enabled @@ -438,5 +415,4 @@ public static function get_analytics_keys() return $analyticsKeys; } ->>>>>>> 9ffaf6d (SS5 upgrade) }