@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return null; |
47 | 47 | } |
48 | 48 | |
49 | - if (! method_exists($notification, 'toMail')) { |
|
49 | + if ( ! method_exists($notification, 'toMail')) { |
|
50 | 50 | return null; |
51 | 51 | } |
52 | 52 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $hubspotEmail = $response->json(); |
68 | 68 | |
69 | 69 | if ($response->status() == 201 && ! empty($hubspotEmail['id'])) { |
70 | - $url = self::HUBSPOT_URL.'/'.$hubspotEmail['id'].'/associations/contacts/'.$hubspotContactId.'/198'; |
|
70 | + $url = self::HUBSPOT_URL . '/' . $hubspotEmail['id'] . '/associations/contacts/' . $hubspotContactId . '/198'; |
|
71 | 71 | $newResp = $this->callApi($url, 'put'); |
72 | 72 | |
73 | 73 | if ($newResp->status() != 200) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $hubspotEmail['associations'] = $newResp['associations']; |
77 | 77 | |
78 | 78 | |
79 | - $url = 'https://api.hubapi.com/crm/v3/objects/contacts/'.$hubspotContactId.'?associations=company'; |
|
79 | + $url = 'https://api.hubapi.com/crm/v3/objects/contacts/' . $hubspotContactId . '?associations=company'; |
|
80 | 80 | $contactResp = $this->callApi($url, 'get'); |
81 | 81 | |
82 | 82 | if ($contactResp->status() != 200) { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | if ($hubspotCompanyId = $contactResp['associations']['companies']['results'][0]['id'] ?? null) { |
87 | - $url = self::HUBSPOT_URL.'/'.$hubspotEmail['id'].'/associations/companies/'.$hubspotCompanyId.'/185'; |
|
87 | + $url = self::HUBSPOT_URL . '/' . $hubspotEmail['id'] . '/associations/companies/' . $hubspotCompanyId . '/185'; |
|
88 | 88 | $newResp = $this->callApi($url, 'put'); |
89 | 89 | |
90 | 90 | if ($newResp->status() != 200) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | throw InvalidConfiguration::configurationNotSet(); |
107 | 107 | } |
108 | 108 | |
109 | - $url = $baseUrl.'?hapikey='.$apiKey; |
|
109 | + $url = $baseUrl . '?hapikey=' . $apiKey; |
|
110 | 110 | $http = Http::acceptJson(); |
111 | 111 | |
112 | 112 | if (is_null($apiKey)) { |