Passed
Push — dev ( 76187a...8f1bb8 )
by Abu Salam
02:46
created
src/SmsGatewayServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/SmsGateway.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         curl_setopt($post, CURLOPT_POSTFIELDS, http_build_query($this->getPayload()));
49 49
         curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);
50 50
         $resp['data'] = curl_exec($post);
51
-        if($resp['data'] === false) {
52
-            $resp['error'] =  curl_error($post);
51
+        if ($resp['data'] === false) {
52
+            $resp['error'] = curl_error($post);
53 53
         }
54 54
         curl_close($post);
55 55
         $this->setResponse($resp);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $payload = $this->buildConfigParams();
62 62
         if (array_key_exists('key', $payload)) {
63
-            $payload['key'] = hash('sha512', $this->getUsername().$this->getSenderid().$this->getContents().$this->getSecurekey());
63
+            $payload['key'] = hash('sha512', $this->getUsername() . $this->getSenderid() . $this->getContents() . $this->getSecurekey());
64 64
         }
65 65
         //dump("data to hash => ".$this->getUsername().$this->getSenderid().$this->getContents().$this->getSecurekey());
66 66
         $this->setPayload($payload);
Please login to merge, or discard this patch.