Skip to content

Commit

Permalink
Merge pull request #12 from eduzz/hotfix-t_constant_encapsed_string
Browse files Browse the repository at this point in the history
fix T_CONSTANT_ENCAPSED_STRING send email
  • Loading branch information
henriquegomes6 authored Oct 29, 2020
2 parents 4041193 + ae9e846 commit 609dcbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Messages/EmailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Eduzz\ContactCenter\Messages;

use Eduzz\ContactCenter\Consts\EmailPriorityType;
use Eduzz\ContactCenter\Entities\Person;
use Eduzz\ContactCenter\Entities\Postback;
use Eduzz\ContactCenter\Exceptions\ValidationException;
use Eduzz\ContactCenter\Messages\Message;
use Eduzz\ContactCenter\Traits\Configuration;
use Eduzz\ContactCenter\Consts\EmailPriorityType;
use Eduzz\ContactCenter\Exceptions\ValidationException;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;

Expand Down Expand Up @@ -106,7 +106,7 @@ public function postback(Postback $postback)

public function priority(string $priority = EmailPriorityType::MEDIUM)
{
if(!in_array($priority, EmailPriorityType::getTypes())) {
if (!in_array($priority, EmailPriorityType::getTypes())) {
throw new ValidationException('The priority must be ' . implode(',', EmailPriorityType::getTypes()));
}

Expand Down Expand Up @@ -189,7 +189,7 @@ public function asyncSend()
$response = $this->clientHttp->request(
'POST',
$this->config->baseUrl . '/send/async-email',
[ 
[
'json' => $this->prepareData(),
]
);
Expand Down

0 comments on commit 609dcbc

Please sign in to comment.