diff --git a/src/Models/HubspotCompany.php b/src/Models/HubspotCompany.php index 16bd741..a30604f 100644 --- a/src/Models/HubspotCompany.php +++ b/src/Models/HubspotCompany.php @@ -2,13 +2,11 @@ namespace Tapp\LaravelHubspot\Models; -use HubSpot\Client\Crm\Associations\V4\ApiException as AssociationsApiException; -use HubSpot\Client\Crm\Associations\V4\Model\AssociationSpec; -use HubSpot\Client\Crm\Companies\Model\PublicObjectSearchRequest as CompanySearch; -use HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInput as CompanyObject; use HubSpot\Client\Crm\Companies\ApiException; use HubSpot\Client\Crm\Companies\Model\Filter; use HubSpot\Client\Crm\Companies\Model\FilterGroup; +use HubSpot\Client\Crm\Companies\Model\PublicObjectSearchRequest as CompanySearch; +use HubSpot\Client\Crm\Companies\Model\SimplePublicObjectInput as CompanyObject; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Log; use Tapp\LaravelHubspot\Facades\Hubspot; @@ -154,7 +152,7 @@ public static function findOrCreateCompany($properties) // TODO debugging dump($filter, $properties); // dd($e); - throw($e); + throw ($e); } $companyExists = $searchResults['total']; diff --git a/src/Models/HubspotContact.php b/src/Models/HubspotContact.php index 04cde43..b82c02d 100644 --- a/src/Models/HubspotContact.php +++ b/src/Models/HubspotContact.php @@ -196,7 +196,7 @@ public static function associateCompanyWithContact(string $companyId, string $co } catch (AssociationsApiException $e) { // dd($companyId, $contactId); dd($e); - throw($e); + throw ($e); echo 'Exception when calling basic_api->create: ', $e->getMessage(); } }