Passed
Push — master ( a904e6...fcbec2 )
by mahdi
03:03
created
src/Drivers/Saman/Saman.php 1 patch
Spacing   +4 added lines, -4 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
     /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $response = $soap->RequestToken($data['MID'], $data['ResNum'], $data['Amount'], $data['CellNumber']);
70 70
 
71
-        $status = (int)$response;
71
+        $status = (int) $response;
72 72
 
73 73
         if ($status < 0) { // if something has done in a wrong way
74 74
             $this->purchaseFailed($response);
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
         );
117 117
 
118 118
         $soap = new \SoapClient($this->settings->apiVerificationUrl);
119
-        $status = (int)$soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
119
+        $status = (int) $soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
120 120
 
121 121
         if ($status < 0) {
122 122
             $this->notVerified($status);
123 123
         }
124 124
 
125
-        $receipt =  $this->createReceipt($data['RefNum']);
125
+        $receipt = $this->createReceipt($data['RefNum']);
126 126
         $receipt->detail([
127 127
             'traceNo' => Request::input('TraceNo'),
128 128
             'referenceNo' => Request::input('RRN'),
Please login to merge, or discard this patch.