@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | return null; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if (! method_exists($notification, 'toMail')) { |
|
| 50 | + if ( ! method_exists($notification, 'toMail')) { |
|
| 51 | 51 | return null; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -60,21 +60,21 @@ discard block |
||
| 60 | 60 | "hs_email_direction" => "EMAIL", |
| 61 | 61 | "hs_email_status" => "SENT", |
| 62 | 62 | "hs_email_subject" => $message->subject, |
| 63 | - "hs_email_text" => (string)$message->render(), |
|
| 63 | + "hs_email_text" => (string) $message->render(), |
|
| 64 | 64 | ], |
| 65 | 65 | ]; |
| 66 | 66 | |
| 67 | 67 | $hubspotEmail = $this->callApi(self::HUBSPOT_URL_V3 . 'emails', 'post', $params); |
| 68 | 68 | |
| 69 | - if (! empty($hubspotEmail['id'])) { |
|
| 69 | + if ( ! empty($hubspotEmail['id'])) { |
|
| 70 | 70 | |
| 71 | 71 | $this->callApi( |
| 72 | - self::HUBSPOT_URL_V4 . 'contact/'. $hubspotContactId .'/associations/default/email/' . $hubspotEmail['id'], |
|
| 72 | + self::HUBSPOT_URL_V4 . 'contact/' . $hubspotContactId . '/associations/default/email/' . $hubspotEmail['id'], |
|
| 73 | 73 | 'put', |
| 74 | 74 | ["associationTypeId" => 197] |
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | - if(config('hubspot.company_email_associations')) { |
|
| 77 | + if (config('hubspot.company_email_associations')) { |
|
| 78 | 78 | $contactResp = $this->callApi( |
| 79 | 79 | self::HUBSPOT_URL_V3 . 'contacts/' . $hubspotContactId, |
| 80 | 80 | 'get', |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $apiKey = config('hubspot.api_key'); |
| 106 | - if($apiKey) { |
|
| 106 | + if ($apiKey) { |
|
| 107 | 107 | $params['hapikey'] = $apiKey; |
| 108 | 108 | } |
| 109 | 109 | |