Passed
Pull Request — master (#294)
by
unknown
02:51
created
src/Drivers/Saman/Saman.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function __construct(Invoice $invoice, $settings)
38 38
     {
39 39
         $this->invoice($invoice);
40
-        $this->settings = (object)$settings;
40
+        $this->settings = (object) $settings;
41 41
     }
42 42
 
43 43
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $response = $soap->RequestToken($data['MID'], $data['ResNum'], $data['Amount'], $data['CellNumber']);
79 79
 
80
-        $status = (int)$response;
80
+        $status = (int) $response;
81 81
 
82 82
         if ($status < 0) { // if something has done in a wrong way
83 83
             $this->purchaseFailed($response);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 ]),
138 138
             ]
139 139
         );
140
-        $status = (int)$soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
140
+        $status = (int) $soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
141 141
 
142 142
         if ($status < 0) {
143 143
             $this->notVerified($status);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $this->notVerified($status);
151 151
         }
152 152
 
153
-        $receipt =  $this->createReceipt($data['RefNum']);
153
+        $receipt = $this->createReceipt($data['RefNum']);
154 154
         $receipt->detail([
155 155
             'traceNo' => Request::input('TraceNo'),
156 156
             'referenceNo' => Request::input('RRN'),
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
         );
242 242
 
243 243
         if (array_key_exists($status, $translations)) {
244
-            throw new InvalidPaymentException($translations[$status], (int)$status);
244
+            throw new InvalidPaymentException($translations[$status], (int) $status);
245 245
         } else {
246
-            throw new InvalidPaymentException('خطای ناشناخته ای رخ داده است.', (int)$status);
246
+            throw new InvalidPaymentException('خطای ناشناخته ای رخ داده است.', (int) $status);
247 247
         }
248 248
     }
249 249
 }
Please login to merge, or discard this patch.