@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | $this->url = "{$this->baseUrl}/{$this->action}"; |
100 | 100 | } |
101 | 101 | |
102 | - public function get($action, $queryOptions = []) |
|
102 | + public function get($action, $queryOptions = [ ]) |
|
103 | 103 | { |
104 | 104 | $this->setRequestOptions($action, 'GET'); |
105 | 105 | try { |
106 | 106 | $request = $this->client->get($this->url, [ |
107 | 107 | 'headers' => $this->getAuthorisationHeader(), |
108 | 108 | 'query' => $queryOptions |
109 | - ], array()); |
|
109 | + ], array()); |
|
110 | 110 | } catch (RequestException $e) { |
111 | 111 | if ($e->hasResponse()) { |
112 | 112 | return $this->getJsonResponse($e->getResponse()); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | return $this->getJsonResponse($request); |
117 | 117 | } |
118 | 118 | |
119 | - public function post($action, $formData = []) |
|
119 | + public function post($action, $formData = [ ]) |
|
120 | 120 | { |
121 | 121 | $this->setRequestOptions($action, 'POST'); |
122 | 122 | try { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return $this->getJsonResponse($request); |
135 | 135 | } |
136 | 136 | |
137 | - public function put($action, $optionData = []) |
|
137 | + public function put($action, $optionData = [ ]) |
|
138 | 138 | { |
139 | 139 | $this->setRequestOptions($action, 'PUT'); |
140 | 140 | try { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | return $this->getJsonResponse($request); |
153 | 153 | } |
154 | 154 | |
155 | - public function patch($action, $optionData = []) |
|
155 | + public function patch($action, $optionData = [ ]) |
|
156 | 156 | { |
157 | 157 | $this->setRequestOptions($action, 'PATCH'); |
158 | 158 | try { |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * @param array $queryOptions |
116 | 116 | * @return json |
117 | 117 | */ |
118 | - public function getAllContactGroups($queryOptions = []) |
|
118 | + public function getAllContactGroups($queryOptions = [ ]) |
|
119 | 119 | { |
120 | 120 | return $this->request->get('group', $queryOptions); |
121 | 121 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function register() |
15 | 15 | { |
16 | - $this->app->bind('smsglobal-laravel', function () { |
|
16 | + $this->app->bind('smsglobal-laravel', function() { |
|
17 | 17 | |
18 | 18 | return new RestApi\RestApiClient; |
19 | 19 | }); |