Passed
Push — master ( 4b4977...15b078 )
by mahdi
02:48
created
src/Drivers/Behpardakht/Behpardakht.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function __construct(Invoice $invoice, $settings)
40 40
     {
41 41
         $this->invoice($invoice);
42
-        $this->settings = (object)$settings;
42
+        $this->settings = (object) $settings;
43 43
     }
44 44
 
45 45
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         // purchase was not successful
74 74
         if ($data[0] != "0") {
75
-            throw new PurchaseFailedException($this->translateStatus($data[0]), (int)$data[0]);
75
+            throw new PurchaseFailedException($this->translateStatus($data[0]), (int) $data[0]);
76 76
         }
77 77
 
78 78
         $this->invoice->transactionId($data[1]);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $soap = $this->client($this->settings->apiVerificationUrl);
121 121
 
122 122
         // step1: verify request
123
-        $verifyResponse = (int)$soap->bpVerifyRequest($data)->return;
123
+        $verifyResponse = (int) $soap->bpVerifyRequest($data)->return;
124 124
         if ($verifyResponse != 0) {
125 125
             // rollback money and throw exception
126 126
             // avoid rollback if request was already verified
Please login to merge, or discard this patch.