@@ -3,5 +3,5 @@ |
||
3 | 3 | |
4 | 4 | return [ |
5 | 5 | 'api_key' => env('HUBSPOT_API_KEY'), |
6 | - 'hubspot_owner_id' => env('HUBSPOT_OWNER_ID',null) |
|
6 | + 'hubspot_owner_id' => env('HUBSPOT_OWNER_ID', null) |
|
7 | 7 | ]; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | return null; |
35 | 35 | } |
36 | 36 | |
37 | - if (! method_exists($notification, 'toMail')) { |
|
37 | + if ( ! method_exists($notification, 'toMail')) { |
|
38 | 38 | return null; |
39 | 39 | } |
40 | 40 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | $response = Http::post( |
48 | - self::HUBSPOT_URL.'?hapikey=' . $apiKey, |
|
48 | + self::HUBSPOT_URL . '?hapikey=' . $apiKey, |
|
49 | 49 | [ |
50 | 50 | "properties" => [ |
51 | 51 | "hs_timestamp" => now()->getPreciseTimestamp(3), |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $hubspotEmail = $response->json(); |
60 | 60 | |
61 | 61 | if ($response->status() == 201 && ! empty($hubspotEmail['id'])) { |
62 | - $newResp = Http::put(self::HUBSPOT_URL.'/'. $hubspotEmail['id'] . '/associations/contacts/' . $hubspotContactId . '/198?hapikey=' . $apiKey); |
|
62 | + $newResp = Http::put(self::HUBSPOT_URL . '/' . $hubspotEmail['id'] . '/associations/contacts/' . $hubspotContactId . '/198?hapikey=' . $apiKey); |
|
63 | 63 | |
64 | 64 | if ($newResp->status() != 200) { |
65 | 65 | throw CouldNotSendNotification::serviceRespondedWithAnError($newResp->body()); |