@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | curl_setopt($post, CURLOPT_RETURNTRANSFER, 1); |
56 | 56 | $resp['data'] = curl_exec($post); |
57 | 57 | $resp['payload'] = $this->getPayload(); |
58 | - if($resp['data'] === false) { |
|
59 | - $resp['error'] = curl_error($post); |
|
58 | + if ($resp['data'] === false) { |
|
59 | + $resp['error'] = curl_error($post); |
|
60 | 60 | } |
61 | 61 | curl_close($post); |
62 | 62 | $this->setResponse($resp); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $payload = array_merge($form_params, $payload); |
76 | 76 | |
77 | 77 | if (array_key_exists('key', $payload)) { |
78 | - $payload['key'] = hash('sha512', $this->getUsername().$this->getSenderid().$this->getContents().$this->getSecurekey()); |
|
78 | + $payload['key'] = hash('sha512', $this->getUsername() . $this->getSenderid() . $this->getContents() . $this->getSecurekey()); |
|
79 | 79 | } |
80 | 80 | //dump("data to hash => ".$this->getUsername().$this->getSenderid().$this->getContents().$this->getSecurekey()); |
81 | 81 | $this->setPayload($payload); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | ? config('smsgateway.' . $this->getGateway() . '.apiValues.apiTemplateId') |
130 | 130 | : trim($templateId); |
131 | 131 | $payload = $this->getPayload(); |
132 | - if(is_array($payload)) { |
|
132 | + if (is_array($payload)) { |
|
133 | 133 | if (array_key_exists('templateid', $payload)) { |
134 | 134 | $payload['templateid'] = $this->templateid; |
135 | 135 | $this->setPayload($payload); |