@@ -393,7 +393,7 @@ public function addEmails($bookID, $emails, $additionalParams = [])
393
393
}
394
394
395
395
$ data = array (
396
- 'emails ' => json_encode ($ emails ),
396
+ 'emails ' => json_encode ($ emails ),
397
397
);
398
398
399
399
if ($ additionalParams ) {
@@ -552,7 +552,7 @@ public function campaignStatByReferrals($id)
552
552
* @param string $name
553
553
* @param string $attachments
554
554
* @param string $type
555
- * @param bool $useTemplateId
555
+ * @param bool $useTemplateId
556
556
*
557
557
* @return mixed
558
558
*/
@@ -566,7 +566,8 @@ public function createCampaign(
566
566
$ attachments = '' ,
567
567
$ type = '' ,
568
568
$ useTemplateId = false
569
- ) {
569
+ )
570
+ {
570
571
if (empty ($ senderName ) || empty ($ senderEmail ) || empty ($ subject ) || empty ($ bodyOrTemplateId ) || empty ($ bookId )) {
571
572
return $ this ->handleError ('Not all data. ' );
572
573
}
@@ -575,7 +576,7 @@ public function createCampaign(
575
576
$ attachments = serialize ($ attachments );
576
577
}
577
578
578
- if ($ useTemplateId ) {
579
+ if ($ useTemplateId ) {
579
580
$ paramName = 'template_id ' ;
580
581
$ paramValue = $ bodyOrTemplateId ;
581
582
} else {
@@ -752,7 +753,8 @@ public function getEmailGlobalInfo($email)
752
753
* @param array $emails Emails list
753
754
* @return stdClass
754
755
*/
755
- public function getEmailsGlobalInfo ($ emails ) {
756
+ public function getEmailsGlobalInfo ($ emails )
757
+ {
756
758
if (empty ($ emails )) {
757
759
return $ this ->handleError ('Empty emails list ' );
758
760
}
@@ -929,7 +931,7 @@ public function smtpGetEmailInfoById($id)
929
931
*
930
932
* @param null $limit
931
933
* @param null $offset
932
- *
934
+ *
933
935
* @return mixed
934
936
*/
935
937
public function smtpListUnsubscribed ($ limit = null , $ offset = null )
@@ -1068,7 +1070,7 @@ public function smtpSendMail($email)
1068
1070
return $ this ->handleError ('Empty email data ' );
1069
1071
}
1070
1072
1071
- if (isset ($ email ['html ' ])){
1073
+ if (isset ($ email ['html ' ])) {
1072
1074
$ email ['html ' ] = base64_encode ($ email ['html ' ]);
1073
1075
}
1074
1076
@@ -1414,7 +1416,7 @@ public function getPhoneInfo($bookID, $phoneNumber)
1414
1416
return $ this ->handleError ('Empty book id ' );
1415
1417
}
1416
1418
1417
- $ requestResult = $ this ->sendRequest ('/sms/numbers/info/ ' . $ bookID. '/ ' . $ phoneNumber );
1419
+ $ requestResult = $ this ->sendRequest ('/sms/numbers/info/ ' . $ bookID . '/ ' . $ phoneNumber );
1418
1420
1419
1421
return $ this ->handleResult ($ requestResult );
1420
1422
}
@@ -1541,7 +1543,7 @@ public function listSmsCampaigns(array $params = null)
1541
1543
*/
1542
1544
public function getSmsCampaignInfo ($ campaignID )
1543
1545
{
1544
- $ requestResult = $ this ->sendRequest ('/sms/campaigns/info/ ' . $ campaignID );
1546
+ $ requestResult = $ this ->sendRequest ('/sms/campaigns/info/ ' . $ campaignID );
1545
1547
1546
1548
return $ this ->handleResult ($ requestResult );
1547
1549
}
@@ -1554,7 +1556,7 @@ public function getSmsCampaignInfo($campaignID)
1554
1556
*/
1555
1557
public function cancelSmsCampaign ($ campaignID )
1556
1558
{
1557
- $ requestResult = $ this ->sendRequest ('/sms/campaigns/cancel/ ' . $ campaignID , 'PUT ' );
1559
+ $ requestResult = $ this ->sendRequest ('/sms/campaigns/cancel/ ' . $ campaignID , 'PUT ' );
1558
1560
1559
1561
return $ this ->handleResult ($ requestResult );
1560
1562
}
0 commit comments