@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Request constructor. |
46 | 46 | * |
47 | - * @param $endpoint |
|
47 | + * @param string $endpoint |
|
48 | 48 | * @param array $body |
49 | 49 | */ |
50 | 50 | public function __construct($endpoint, array $body = null) |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * |
184 | 184 | * @throws BongaTechException |
185 | 185 | * |
186 | - * @return mixed |
|
186 | + * @return Response |
|
187 | 187 | */ |
188 | 188 | public function send($recipients, $message) |
189 | 189 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | { |
190 | 190 | $this->recipients = $recipients; |
191 | 191 | $this->message = $message; |
192 | - $this->endpoint = $this->config['base_url'] . $this->config['sms_endpoint']; |
|
192 | + $this->endpoint = $this->config['base_url'].$this->config['sms_endpoint']; |
|
193 | 193 | |
194 | 194 | if ($this->batch_type === BatchType::NOT_BATCH) { |
195 | 195 | |
@@ -283,13 +283,13 @@ discard block |
||
283 | 283 | ] |
284 | 284 | ], |
285 | 285 | 'MessageType' => [ |
286 | - (string)$this->message_type |
|
286 | + (string) $this->message_type |
|
287 | 287 | ], |
288 | 288 | 'BatchType' => [ |
289 | - (string)$this->batch_type |
|
289 | + (string) $this->batch_type |
|
290 | 290 | ], |
291 | 291 | 'SourceAddr' => [ |
292 | - (string)$this->config['sender_id'] |
|
292 | + (string) $this->config['sender_id'] |
|
293 | 293 | ], |
294 | 294 | 'MessagePayload' => $messages, |
295 | 295 | 'DestinationAddr' => $recipients, |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | { |
356 | 356 | $config = Config::get(); |
357 | 357 | |
358 | - $endpoint = $config['base_url'] . $config['balance_endpoint'] . '?UserID=' . $config['user_id'] . '&Token=' . md5($config['password']); |
|
358 | + $endpoint = $config['base_url'].$config['balance_endpoint'].'?UserID='.$config['user_id'].'&Token='.md5($config['password']); |
|
359 | 359 | |
360 | 360 | $request = new Request($endpoint); |
361 | 361 | $response = $request->getBalance(); |