PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Integration/Hubspot/Common.php +8 -4 2.03.3.1 View file →
@@ -1,10 +1,12 @@
1 1 <?php
2 2
3 3 namespace BitCode\BitForm\Core\Integration\Hubspot;
4 4
5 -class Common {
6 - public static function formFldMapping($dataFinal, $fieldMap, $data, $type = '') {
5 +class Common
6 +{
7 + public static function formFldMapping($dataFinal, $fieldMap, $data, $type = '')
8 + {
7 9 foreach ($fieldMap as $value) {
8 10 $triggerValue = $value->formField;
9 11 $actionValue = $value->hubspotField;
10 12 if ('custom' === $triggerValue) {
@@ -24,9 +26,10 @@
24 26 }
25 27 return $dataFinal;
26 28 }
27 29
28 - public static function customFldMapping($type, $action, $integrationDetails, $data) {
30 + public static function customFldMapping($type, $action, $integrationDetails, $data)
31 + {
29 32 $customFields = self::customFields();
30 33 foreach ($customFields[$type] as $key => $name) {
31 34 if (property_exists($action, $name)) {
32 35 $data[$key] = $integrationDetails->{$name};
@@ -34,9 +37,10 @@
34 37 }
35 38 return $data;
36 39 }
37 40
38 - public static function customFields() {
41 + public static function customFields()
42 + {
39 43 return [
40 44 'lead' => [
41 45 'hs_lead_status' => 'lead_status',
42 46 'lifecyclestage' => 'lifecycle_stage',