Passed
Push — master ( 10264c...d085e2 )
by mahdi
02:35
created
src/Drivers/Asanpardakht/Asanpardakht.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function __construct(Invoice $invoice, $settings)
59 59
     {
60 60
         $this->invoice($invoice);
61
-        $this->settings = (object)$settings;
61
+        $this->settings = (object) $settings;
62 62
 
63 63
         //convert to rial
64 64
         $this->invoice->amount($this->invoice->getAmount() * 10);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             'localInvoiceId' => $this->invoice->getUuid(),
200 200
             'amountInRials' => $this->invoice->getAmount(),
201 201
             'localDate' => $this->getTime()['content'],
202
-            'callbackURL' => $this->settings->callbackUrl . "?" . http_build_query(['invoice' => $this->invoice->getUuid()]),
202
+            'callbackURL' => $this->settings->callbackUrl."?".http_build_query(['invoice' => $this->invoice->getUuid()]),
203 203
             'paymentId' => "0",
204 204
             'additionalData' => '',
205 205
         ]);
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
     public function reverse(): array
214 214
     {
215 215
         return $this->callApi('POST', self::ReverseURL, [
216
-            'merchantConfigurationId' => (int)$this->settings->merchantConfigID,
217
-            'payGateTranId' => (int)$this->invoice->getUuid()
216
+            'merchantConfigurationId' => (int) $this->settings->merchantConfigID,
217
+            'payGateTranId' => (int) $this->invoice->getUuid()
218 218
         ]);
219 219
     }
220 220
 
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
     public function cancel(): array
227 227
     {
228 228
         return $this->callApi('POST', self::CancelURL, [
229
-            'merchantConfigurationId' => (int)$this->settings->merchantConfigID,
230
-            'payGateTranId' => (int)$this->payGateTransactionId
229
+            'merchantConfigurationId' => (int) $this->settings->merchantConfigID,
230
+            'payGateTranId' => (int) $this->payGateTransactionId
231 231
         ]);
232 232
     }
233 233
 
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
     public function verifyTransaction(): array
240 240
     {
241 241
         return $this->callApi('POST', self::VerifyURL, [
242
-            'merchantConfigurationId' => (int)$this->settings->merchantConfigID,
243
-            'payGateTranId' => (int)$this->payGateTransactionId
242
+            'merchantConfigurationId' => (int) $this->settings->merchantConfigID,
243
+            'payGateTranId' => (int) $this->payGateTransactionId
244 244
         ]);
245 245
     }
246 246
 
@@ -252,8 +252,8 @@  discard block
 block discarded – undo
252 252
     public function settlement(): array
253 253
     {
254 254
         return $this->callApi('POST', self::SettlementURL, [
255
-            'merchantConfigurationId' => (int)$this->settings->merchantConfigID,
256
-            'payGateTranId' => (int)$this->payGateTransactionId
255
+            'merchantConfigurationId' => (int) $this->settings->merchantConfigID,
256
+            'payGateTranId' => (int) $this->payGateTransactionId
257 257
         ]);
258 258
     }
259 259
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function cardHash(): array
266 266
     {
267
-        return $this->callApi('GET', self::CardHashURL . '?merchantConfigurationId=' . $this->settings->merchantConfigID . '&localInvoiceId=' . $this->invoice->getTransactionId(), []);
267
+        return $this->callApi('GET', self::CardHashURL.'?merchantConfigurationId='.$this->settings->merchantConfigID.'&localInvoiceId='.$this->invoice->getTransactionId(), []);
268 268
     }
269 269
 
270 270
     /**
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function transactionResult(): array
276 276
     {
277
-        return $this->callApi('GET', self::TranResultURL . '?merchantConfigurationId=' . $this->settings->merchantConfigID . '&localInvoiceId=' . $this->invoice->getTransactionId(), []);
277
+        return $this->callApi('GET', self::TranResultURL.'?merchantConfigurationId='.$this->settings->merchantConfigID.'&localInvoiceId='.$this->invoice->getTransactionId(), []);
278 278
     }
279 279
 
280 280
     /**
Please login to merge, or discard this patch.