Passed
Pull Request — master (#220)
by
unknown
02:36
created
src/Drivers/Paystar/Paystar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         if (!empty($this->settings->signKey)) {
85 85
             $data['sign'] = hash_hmac(
86 86
                 'SHA512',
87
-                $amount . '#' . $order_id . '#' . $callback,
87
+                $amount.'#'.$order_id.'#'.$callback,
88 88
                 $this->settings->signKey
89 89
             );
90 90
         }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     'headers' => [
99 99
                         'Content-Type' => 'application/json',
100 100
                         'Accept' => 'application/json',
101
-                        'Authorization' => 'Bearer ' . $this->settings->gatewayId,
101
+                        'Authorization' => 'Bearer '.$this->settings->gatewayId,
102 102
                     ],
103 103
                     'body' => json_encode($data),
104 104
                 ]
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         if (!empty($this->settings->signKey)) {
164 164
             $data['sign'] = hash_hmac(
165 165
                 'SHA512',
166
-                $amount . '#' . $order_id . '#' . $callback,
166
+                $amount.'#'.$order_id.'#'.$callback,
167 167
                 $this->settings->signKey
168 168
             );
169 169
         }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                 'headers' => [
176 176
                     'Content-Type' => 'application/json',
177 177
                     'Accept' => 'application/json',
178
-                    'Authorization' => 'Bearer ' . $this->settings->gatewayId,
178
+                    'Authorization' => 'Bearer '.$this->settings->gatewayId,
179 179
                 ],
180 180
                 'body' => json_encode($data),
181 181
             ]
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $body = json_decode($response->getBody()->getContents());
185 185
 
186 186
         if ($body->status !== 1) {
187
-            throw new InvalidPaymentException($this->translateStatus($body->status), (int)$body->status);
187
+            throw new InvalidPaymentException($this->translateStatus($body->status), (int) $body->status);
188 188
         }
189 189
 
190 190
         return $this->createReceipt($refNum);
Please login to merge, or discard this patch.