Passed
Push — master ( 3c5a25...6e956f )
by mahdi
02:52
created
src/Drivers/Nextpay/Nextpay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function __construct(Invoice $invoice, $settings)
46 46
     {
47 47
         $this->invoice($invoice);
48
-        $this->settings = (object)$settings;
48
+        $this->settings = (object) $settings;
49 49
         $this->client = new Client();
50 50
     }
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $data = [
63 63
             'api_key' => $this->settings->merchantId,
64
-            'order_id' => intval(1, time()) . crc32($this->invoice->getUuid()),
64
+            'order_id' => intval(1, time()).crc32($this->invoice->getUuid()),
65 65
             'amount' => $this->invoice->getAmount(),
66 66
             'callback_uri' => $this->settings->callbackUrl,
67 67
         ];
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function pay(): RedirectionForm
123 123
     {
124
-        $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId();
124
+        $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId();
125 125
 
126 126
         return $this->redirectWithForm($payUrl, [], 'GET');
127 127
     }
Please login to merge, or discard this patch.