@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | private function prepareRequest() |
| 74 | 74 | { |
| 75 | - $this->client = new Client(['base_uri' => self::baseURL]); |
|
| 75 | + $this->client = new Client([ 'base_uri' => self::baseURL ]); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | private function performGetRequest($relativeUrl) |
| 84 | 84 | { |
| 85 | 85 | $this->response = $this->client->request('GET', $relativeUrl, [ |
| 86 | - 'auth' => [$this->publicKey, $this->accessToken] |
|
| 86 | + 'auth' => [ $this->publicKey, $this->accessToken ] |
|
| 87 | 87 | ]); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | private function performPostRequest($relativeUrl, $data) |
| 97 | 97 | { |
| 98 | 98 | $this->response = $this->client->request('POST', $relativeUrl, [ |
| 99 | - 'auth' => [$this->publicKey, $this->accessToken], |
|
| 99 | + 'auth' => [ $this->publicKey, $this->accessToken ], |
|
| 100 | 100 | 'form_params' => $data |
| 101 | 101 | ]); |
| 102 | 102 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * @param array $payload |
| 107 | 107 | * @return $this |
| 108 | 108 | */ |
| 109 | - public function sendSMS($payload = []) |
|
| 109 | + public function sendSMS($payload = [ ]) |
|
| 110 | 110 | { |
| 111 | 111 | if (empty($payload)) { |
| 112 | 112 | throw IsEmpty::create("Message Payload can not be empty. Please fill the appropriate details"); |
@@ -122,13 +122,13 @@ discard block |
||
| 122 | 122 | * @param array $payload |
| 123 | 123 | * @return $this |
| 124 | 124 | */ |
| 125 | - public function sendBulkSMS($payload = []) |
|
| 125 | + public function sendBulkSMS($payload = [ ]) |
|
| 126 | 126 | { |
| 127 | 127 | if (empty($payload)) { |
| 128 | 128 | throw IsEmpty::create("Message Payload can not be empty. Please fill the appropriate details"); |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - if(empty($payload['to'])){ |
|
| 131 | + if (empty($payload[ 'to' ])) { |
|
| 132 | 132 | throw IsEmpty::create("Message destination can not be empty."); |
| 133 | 133 | } |
| 134 | 134 | |