Passed
Push — master ( 6941da...44ae09 )
by mahdi
06:28 queued 03:10
created
src/Drivers/Asanpardakht/Asanpardakht.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function __construct(Invoice $invoice, $settings)
36 36
     {
37 37
         $this->invoice($invoice);
38
-        $this->settings = (object)$settings;
38
+        $this->settings = (object) $settings;
39 39
     }
40 40
 
41 41
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         $params = $this->preparePurchaseData();
54 54
         $result = $client->RequestOperation($params);
55
-        if (! $result) {
55
+        if (!$result) {
56 56
             throw  new PurchaseFailedException('خطای فراخوانی متد درخواست تراکنش.');
57 57
         }
58 58
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $payGateTranID = $returningParams[5];
113 113
 
114 114
         if ($resCode != '0' && $resCode != '00') {
115
-            $message =  "خطای شماره " . $resCode . " رخ داده و تراکنش ناموفق بوده است.";
115
+            $message = "خطای شماره ".$resCode." رخ داده و تراکنش ناموفق بوده است.";
116 116
             throw new InvalidPaymentException($message);
117 117
         }
118 118
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     protected function verifyStep($client, $params)
140 140
     {
141 141
         $result = $client->RequestVerification($params);
142
-        if (! $result) {
142
+        if (!$result) {
143 143
             throw new InvalidPaymentException("خطای فراخوانی متد وريفای رخ داده است.");
144 144
         }
145 145
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     protected function settleStep($client, $params)
162 162
     {
163 163
         $result = $client->RequestReconciliation($params);
164
-        if (! $result) {
164
+        if (!$result) {
165 165
             throw new InvalidPaymentException('خطای فراخوانی متد تسويه رخ داده است.');
166 166
         }
167 167
 
Please login to merge, or discard this patch.