@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | $salesForceObjects[] = 'Lead'; |
274 | 274 | } |
275 | 275 | |
276 | - $isRequired = function (array $field, $object) { |
|
276 | + $isRequired = function(array $field, $object) { |
|
277 | 277 | return |
278 | 278 | ($field['type'] !== 'boolean' && empty($field['nillable']) && !in_array($field['name'], ['Status', 'Id', 'CreatedDate'])) || |
279 | 279 | ($object == 'Lead' && in_array($field['name'], ['Company'])) || |
@@ -914,7 +914,7 @@ discard block |
||
914 | 914 | break; |
915 | 915 | } |
916 | 916 | |
917 | - $query['nextUrl'] = $nextUrl; |
|
917 | + $query['nextUrl'] = $nextUrl; |
|
918 | 918 | } |
919 | 919 | |
920 | 920 | if ($progress) { |
@@ -1982,7 +1982,7 @@ discard block |
||
1982 | 1982 | { |
1983 | 1983 | if (is_array($response)) { |
1984 | 1984 | foreach ($response as $item) { |
1985 | - $contactId = $integrationEntityId = $campaignId = null; |
|
1985 | + $contactId = $integrationEntityId = $campaignId = null; |
|
1986 | 1986 | $object = 'Lead'; |
1987 | 1987 | $internalObject = 'lead'; |
1988 | 1988 | if (!empty($item['referenceId'])) { |
@@ -2130,7 +2130,7 @@ discard block |
||
2130 | 2130 | { |
2131 | 2131 | // Salesforce craps out with double quotes and unescaped single quotes |
2132 | 2132 | $findEmailsInSF = array_map( |
2133 | - function ($lead) { |
|
2133 | + function($lead) { |
|
2134 | 2134 | return str_replace("'", "\'", $this->cleanPushData($lead['email'])); |
2135 | 2135 | }, |
2136 | 2136 | $checkEmailsInSF |