Passed
Pull Request — master (#266)
by
unknown
02:45
created
src/Drivers/Sepehr/Sepehr.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $mobile = '';
56 56
         //set CellNumber for get user cards
57 57
         if (!empty($this->invoice->getDetails()['mobile'])) {
58
-            $mobile = '&CellNumber=' . $this->invoice->getDetails()['mobile'];
58
+            $mobile = '&CellNumber='.$this->invoice->getDetails()['mobile'];
59 59
         }
60 60
 
61 61
         $invoiceID = $this->test_input($this->invoice->getUuid());
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $this->notVerified($responseCode);
118 118
         }
119 119
 
120
-        $data_query = 'digitalreceipt=' . Request::input('digitalreceipt') . '&Tid=' . $this->settings->terminalId;
120
+        $data_query = 'digitalreceipt='.Request::input('digitalreceipt').'&Tid='.$this->settings->terminalId;
121 121
         $advice_array = $this->makeHttpChargeRequest('POST', $data_query, $this->settings->apiVerificationUrl);
122 122
         $decode_advice_array = json_decode($advice_array);
123 123
 
@@ -193,9 +193,9 @@  discard block
 block discarded – undo
193 193
         );
194 194
 
195 195
         if (array_key_exists($status, $translations)) {
196
-            throw new InvalidPaymentException($translations[$status], (int)$status);
196
+            throw new InvalidPaymentException($translations[$status], (int) $status);
197 197
         } else {
198
-            throw new InvalidPaymentException('خطای ناشناخته ای رخ داده است.', (int)$status);
198
+            throw new InvalidPaymentException('خطای ناشناخته ای رخ داده است.', (int) $status);
199 199
         }
200 200
     }
201 201
 
Please login to merge, or discard this patch.