Passed
Branch main (f96dd2)
by Alberto
07:48
created
Category
config/hubspot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,5 +3,5 @@
 block discarded – undo
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
 ];
Please login to merge, or discard this patch.
src/HubspotEmailChannel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.