@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param array $bcc |
| 91 | 91 | * @return bool|string |
| 92 | 92 | */ |
| 93 | - public static function mail($config,$subject,$body,$to,$attachments = [],$cc = [],$bcc=[]) |
|
| 93 | + public static function mail($config, $subject, $body, $to, $attachments = [], $cc = [], $bcc = []) |
|
| 94 | 94 | { |
| 95 | 95 | $msg = [ |
| 96 | 96 | 'type'=>'email', |
@@ -101,13 +101,13 @@ discard block |
||
| 101 | 101 | 'to'=>$to, |
| 102 | 102 | ], |
| 103 | 103 | ]; |
| 104 | - if (!empty($attachments)){ |
|
| 104 | + if (!empty($attachments)) { |
|
| 105 | 105 | $msg['data']['attachments'] = $attachments; |
| 106 | 106 | } |
| 107 | - if (!empty($cc)){ |
|
| 107 | + if (!empty($cc)) { |
|
| 108 | 108 | $msg['data']['cc'] = $cc; |
| 109 | 109 | } |
| 110 | - if (!empty($bcc)){ |
|
| 110 | + if (!empty($bcc)) { |
|
| 111 | 111 | $msg['data']['bcc'] = $bcc; |
| 112 | 112 | } |
| 113 | 113 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * @param array $template_param |
| 126 | 126 | * @return array|string |
| 127 | 127 | */ |
| 128 | - public static function alisms($config,$phone,$template_param = []) |
|
| 128 | + public static function alisms($config, $phone, $template_param = []) |
|
| 129 | 129 | { |
| 130 | 130 | $msg = [ |
| 131 | 131 | 'type'=>'alisms', |