Skip to content

Commit 9e9d760

Browse files
author
bilovol
committed
resolve_issues_46
1 parent 38f9d64 commit 9e9d760

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/ApiClient.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public function addEmails($bookID, $emails, $additionalParams = [])
393393
}
394394

395395
$data = array(
396-
'emails' => json_encode($emails),
396+
'emails' => json_encode($emails),
397397
);
398398

399399
if ($additionalParams) {
@@ -552,7 +552,7 @@ public function campaignStatByReferrals($id)
552552
* @param string $name
553553
* @param string $attachments
554554
* @param string $type
555-
* @param bool $useTemplateId
555+
* @param bool $useTemplateId
556556
*
557557
* @return mixed
558558
*/
@@ -566,7 +566,8 @@ public function createCampaign(
566566
$attachments = '',
567567
$type = '',
568568
$useTemplateId = false
569-
) {
569+
)
570+
{
570571
if (empty($senderName) || empty($senderEmail) || empty($subject) || empty($bodyOrTemplateId) || empty($bookId)) {
571572
return $this->handleError('Not all data.');
572573
}
@@ -575,7 +576,7 @@ public function createCampaign(
575576
$attachments = serialize($attachments);
576577
}
577578

578-
if($useTemplateId) {
579+
if ($useTemplateId) {
579580
$paramName = 'template_id';
580581
$paramValue = $bodyOrTemplateId;
581582
} else {
@@ -752,7 +753,8 @@ public function getEmailGlobalInfo($email)
752753
* @param array $emails Emails list
753754
* @return stdClass
754755
*/
755-
public function getEmailsGlobalInfo($emails) {
756+
public function getEmailsGlobalInfo($emails)
757+
{
756758
if (empty($emails)) {
757759
return $this->handleError('Empty emails list');
758760
}
@@ -929,7 +931,7 @@ public function smtpGetEmailInfoById($id)
929931
*
930932
* @param null $limit
931933
* @param null $offset
932-
*
934+
*
933935
* @return mixed
934936
*/
935937
public function smtpListUnsubscribed($limit = null, $offset = null)
@@ -1068,7 +1070,7 @@ public function smtpSendMail($email)
10681070
return $this->handleError('Empty email data');
10691071
}
10701072

1071-
if(isset($email['html'])){
1073+
if (isset($email['html'])) {
10721074
$email['html'] = base64_encode($email['html']);
10731075
}
10741076

@@ -1414,7 +1416,7 @@ public function getPhoneInfo($bookID, $phoneNumber)
14141416
return $this->handleError('Empty book id');
14151417
}
14161418

1417-
$requestResult = $this->sendRequest('/sms/numbers/info/'.$bookID.'/'.$phoneNumber);
1419+
$requestResult = $this->sendRequest('/sms/numbers/info/' . $bookID . '/' . $phoneNumber);
14181420

14191421
return $this->handleResult($requestResult);
14201422
}
@@ -1541,7 +1543,7 @@ public function listSmsCampaigns(array $params = null)
15411543
*/
15421544
public function getSmsCampaignInfo($campaignID)
15431545
{
1544-
$requestResult = $this->sendRequest('/sms/campaigns/info/'.$campaignID);
1546+
$requestResult = $this->sendRequest('/sms/campaigns/info/' . $campaignID);
15451547

15461548
return $this->handleResult($requestResult);
15471549
}
@@ -1554,7 +1556,7 @@ public function getSmsCampaignInfo($campaignID)
15541556
*/
15551557
public function cancelSmsCampaign($campaignID)
15561558
{
1557-
$requestResult = $this->sendRequest('/sms/campaigns/cancel/'.$campaignID, 'PUT');
1559+
$requestResult = $this->sendRequest('/sms/campaigns/cancel/' . $campaignID, 'PUT');
15581560

15591561
return $this->handleResult($requestResult);
15601562
}

0 commit comments

Comments
 (0)