Skip to content

Commit

Permalink
adicionando verificacao de $debugMode
Browse files Browse the repository at this point in the history
  • Loading branch information
igorwanbarros committed Feb 7, 2018
1 parent 8f5763a commit 17ab5d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Supports/SendEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Softcomtecnologia\SoftsendClient\Supports;


use Softcomtecnologia\Api\Exceptions\InvalidResponseException;
use Softcomtecnologia\SoftsendClient\Configs\SoftsendConfigs;
use Softcomtecnologia\SoftsendClient\Contracts\SupportAbstract;
Expand Down Expand Up @@ -30,6 +29,10 @@ public function __construct(array $data = [], $clientId = '', $clientSecret = ''

public function support()
{
if ($this->getDebugMode()) {
return $this->responseToDebugMode();
}

try {
$response = $this->provider->post(
$this->getToken(),
Expand Down
4 changes: 4 additions & 0 deletions src/Supports/SendSms.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function __construct(array $data = [], $clientId = '', $clientSecret = ''

public function support()
{
if ($this->getDebugMode()) {
return $this->responseToDebugMode();
}

try {
$response = $this->provider->post(
$this->getToken(),
Expand Down

0 comments on commit 17ab5d5

Please sign in to comment.