Passed
Push — master ( eb7ebb...8b9470 )
by mahdi
02:38
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
     /**
@@ -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);
@@ -136,13 +136,13 @@  discard block
 block discarded – undo
136 136
                 ]),
137 137
             ]
138 138
         );
139
-        $status = (int)$soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
139
+        $status = (int) $soap->VerifyTransaction($data['RefNum'], $data['merchantId']);
140 140
 
141 141
         if ($status < 0) {
142 142
             $this->notVerified($status);
143 143
         }
144 144
 
145
-        $receipt =  $this->createReceipt($data['RefNum']);
145
+        $receipt = $this->createReceipt($data['RefNum']);
146 146
         $receipt->detail([
147 147
             'traceNo' => Request::input('TraceNo'),
148 148
             'referenceNo' => Request::input('RRN'),
Please login to merge, or discard this patch.