@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | if ($this->app->runningInConsole()) { |
21 | 21 | $this->publishes([ |
22 | - __DIR__.'/../config/config.php' => config_path('smsgateway.php'), |
|
22 | + __DIR__ . '/../config/config.php' => config_path('smsgateway.php'), |
|
23 | 23 | ], 'config'); |
24 | 24 | /* |
25 | 25 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'skeleton'); |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function register() |
39 | 39 | { |
40 | - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'smsgateway'); |
|
40 | + $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'smsgateway'); |
|
41 | 41 | } |
42 | 42 | } |
@@ -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); |