@@ -39,7 +39,7 @@ |
||
39 | 39 | 'mobile' => $to, |
40 | 40 | 'message' => $message, |
41 | 41 | ], [ |
42 | - 'Authorization' => 'Basic ' . base64_encode('api:key-' . $this->config->get('api_key')), |
|
42 | + 'Authorization' => 'Basic '.base64_encode('api:key-'.$this->config->get('api_key')), |
|
43 | 43 | ]); |
44 | 44 | } |
45 | 45 |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | return $this->request('post', $endpoint, [ |
41 | 41 | 'json' => [ |
42 | 42 | 'to' => $to, |
43 | - 'templateId' => (int)($this->config->get('debug') ? self::DEBUG_TEMPLATE_ID : $templateId), |
|
43 | + 'templateId' => (int) ($this->config->get('debug') ? self::DEBUG_TEMPLATE_ID : $templateId), |
|
44 | 44 | 'appId' => $this->config->get('app_id'), |
45 | 45 | 'datas' => $data, |
46 | 46 | ], |
47 | 47 | 'headers' => [ |
48 | 48 | "Accept" => 'application/json', |
49 | 49 | "Content-Type" => 'application/json;charset=utf-8', |
50 | - "Authorization" => base64_encode($this->config->get('account_sid') . ":" . $datetime), |
|
50 | + "Authorization" => base64_encode($this->config->get('account_sid').":".$datetime), |
|
51 | 51 | ], |
52 | 52 | ]); |
53 | 53 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $accountType = $this->config->get('is_sub_account') ? 'SubAccounts' : 'Accounts'; |
69 | 69 | |
70 | - $sig = strtoupper(md5($this->config->get('account_sid') . $this->config->get('account_token') . $datetime)); |
|
70 | + $sig = strtoupper(md5($this->config->get('account_sid').$this->config->get('account_token').$datetime)); |
|
71 | 71 | |
72 | 72 | return sprintf(self::ENDPOINT_TEMPLATE, $serverIp, self::SERVER_PORT, self::SDK_VERSION, $accountType, $this->config->get('account_sid'), $type, $resource, $sig); |
73 | 73 | } |