@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | throw new Exception($response->getResponseString(), 500); |
154 | 154 | } |
155 | 155 | } catch (Exception $e) { |
156 | - Log::error('Curl error response: '.$e->getMessage()); |
|
156 | + Log::error('Curl error response: ' . $e->getMessage()); |
|
157 | 157 | |
158 | 158 | throw $e; |
159 | 159 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | 'timeout' => 30, |
188 | 188 | ]; |
189 | 189 | |
190 | - switch(get_class($this->provider)) { |
|
190 | + switch (get_class($this->provider)) { |
|
191 | 191 | case self::PROVIDER_GRAMEENPHONE: |
192 | 192 | case self::PROVIDER_NOVOCOM: |
193 | 193 | $options += [ |
@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | 'httpheader' => [ |
203 | 203 | 'Content-Type: application/json', |
204 | 204 | 'Accept: application/json', |
205 | - 'user_id:'.$data['user_id'], |
|
206 | - 'password:'.$data['password'], |
|
205 | + 'user_id:' . $data['user_id'], |
|
206 | + 'password:' . $data['password'], |
|
207 | 207 | ], |
208 | 208 | 'post' => 1, |
209 | 209 | 'postfields' => json_encode($data), |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $options += [ |
216 | 216 | 'httpheader' => [ |
217 | 217 | 'Content-Type: application/json', |
218 | - 'Content-Length: '.strlen($encodedData), |
|
218 | + 'Content-Length: ' . strlen($encodedData), |
|
219 | 219 | 'Accept: application/json', |
220 | 220 | ], |
221 | 221 | 'customrequest' => 'POST', |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | if ($this->provider instanceof NeedsAuthenticationInterface) { |
235 | - $options['httpheader'][] = 'Authorization: Bearer '.$this->provider->getAccessToken(); |
|
235 | + $options['httpheader'][] = 'Authorization: Bearer ' . $this->provider->getAccessToken(); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | return $options; |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | isset($options['returntransfer']) || $options['returntransfer'] = true; |
252 | 252 | |
253 | 253 | foreach ($options as $key => $value) { |
254 | - $option = 'CURLOPT_'.strtoupper($key); |
|
254 | + $option = 'CURLOPT_' . strtoupper($key); |
|
255 | 255 | $curlOptions[constant($option)] = $value; |
256 | 256 | } |
257 | 257 | |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | |
276 | 276 | if ($response != true) { |
277 | 277 | $errorNumber = curl_errno($ch); |
278 | - $eMsg = 'cURL Error # '.$errorNumber.' | cURL Error Message: '.curl_error($ch); |
|
278 | + $eMsg = 'cURL Error # ' . $errorNumber . ' | cURL Error Message: ' . curl_error($ch); |
|
279 | 279 | |
280 | 280 | curl_close($ch); |
281 | 281 |