Passed
Push — dev ( 107a54...76187a )
by Abu Salam
02:13
created
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.