Passed
Pull Request — master (#175)
by
unknown
02:25
created
src/Drivers/Behpardakht/Behpardakht.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
             $context = stream_context_create(
57 57
                 [
58 58
                 'ssl' => array(
59
-                  'verify_peer'       => false,
60
-                  'verify_peer_name'  => false
59
+                    'verify_peer'       => false,
60
+                    'verify_peer_name'  => false
61 61
                 )]
62 62
             );
63 63
 
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
             $context = stream_context_create(
131 131
                 [
132 132
                 'ssl' => array(
133
-                  'verify_peer'       => false,
134
-                  'verify_peer_name'  => false
133
+                    'verify_peer'       => false,
134
+                    'verify_peer_name'  => false
135 135
                 )]
136 136
             );
137 137
 
Please login to merge, or discard this patch.
src/Drivers/Digipay/Digipay.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
 class Digipay extends Driver
17 17
 {
18 18
     /**
19
-    * Digipay Client.
20
-    *
21
-    * @var object
22
-    */
19
+     * Digipay Client.
20
+     *
21
+     * @var object
22
+     */
23 23
     protected $client;
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
config/payment.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
             'callbackUrl' => 'http://yoursite.com/path/to',
170 170
             'description' => 'payment using poolam',
171 171
         ],
172
-          'sadad' => [
172
+            'sadad' => [
173 173
             'apiPaymentByIdentityUrl' => 'https://sadad.shaparak.ir/api/v0/PaymentByIdentity/PaymentRequest',
174 174
             'apiPaymentUrl' => 'https://sadad.shaparak.ir/api/v0/Request/PaymentRequest',
175 175
             'apiPurchaseByIdentityUrl' => 'https://sadad.shaparak.ir/vpg/api/v0/Request/PaymentRequest',
Please login to merge, or discard this patch.
src/Drivers/Fanavacard/Fanavacard.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -135,15 +135,15 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $receipt = new Receipt('fanavacard', $referenceId);
137 137
         $receipt->detail([
138
-                             'ResNum'=>Request::input('ResNum'),
139
-                             'RefNum'=>Request::input('RefNum'),
140
-                             'token'=>Request::input('token'),
141
-                             'CustomerRefNum'=>Request::input('CustomerRefNum'),
142
-                             'CardMaskPan'=>Request::input('CardMaskPan'),
143
-                             'transactionAmount'=>Request::input('transactionAmount'),
144
-                             'emailAddress'=>Request::input('emailAddress'),
145
-                             'mobileNo'=>Request::input('mobileNo'),
146
-                         ]);
138
+                                'ResNum'=>Request::input('ResNum'),
139
+                                'RefNum'=>Request::input('RefNum'),
140
+                                'token'=>Request::input('token'),
141
+                                'CustomerRefNum'=>Request::input('CustomerRefNum'),
142
+                                'CardMaskPan'=>Request::input('CardMaskPan'),
143
+                                'transactionAmount'=>Request::input('transactionAmount'),
144
+                                'emailAddress'=>Request::input('emailAddress'),
145
+                                'mobileNo'=>Request::input('mobileNo'),
146
+                            ]);
147 147
         return $receipt;
148 148
     }
149 149
 
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
     private function httpClientInit(): void
186 186
     {
187 187
         $this->client = new Client([
188
-                                       'curl'=>[\CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1',],
189
-                                       'verify' => false,
190
-                                       'base_uri' => $this->settings->baseUri,
191
-                                       'headers' => ['Content-Type' => 'application/json',],
192
-                                   ]);
188
+                                        'curl'=>[\CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1',],
189
+                                        'verify' => false,
190
+                                        'base_uri' => $this->settings->baseUri,
191
+                                        'headers' => ['Content-Type' => 'application/json',],
192
+                                    ]);
193 193
     }
194 194
 
195 195
     private function getWsContext(): array
Please login to merge, or discard this patch.
src/Drivers/Zibal/Zibal.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
             $this->notVerified('‌صادرکننده‌ی کارت نامعتبر می‌باشد.');
154 154
         elseif ($successFlag == 11)
155 155
             $this->notVerified('‌خطای سوییچ');
156
-         elseif ($successFlag == 12)
156
+            elseif ($successFlag == 12)
157 157
             $this->notVerified('کارت قابل دسترسی نمی‌باشد.');
158 158
         
159 159
 
Please login to merge, or discard this patch.
Braces   +27 added lines, -26 removed lines patch added patch discarded remove patch
@@ -129,32 +129,33 @@
 block discarded – undo
129 129
         $orderId = Request::input('orderId');
130 130
         $transactionId = $this->invoice->getTransactionId() ?? Request::input('trackId');
131 131
 
132
-        if ($successFlag == -2)
133
-            $this->notVerified('خطای داخلی');
134
-        elseif ($successFlag == -1)
135
-            $this->notVerified('در انتظار پردخت');
136
-        elseif ($successFlag == 2)
137
-            $this->notVerified('پرداخت شده - تاییدنشده');
138
-        elseif ($successFlag == 3)
139
-            $this->notVerified('لغوشده توسط کاربر');
140
-        elseif ($successFlag == 4)
141
-            $this->notVerified('‌شماره کارت نامعتبر می‌باشد.');
142
-        elseif ($successFlag == 5)
143
-            $this->notVerified('موجودی حساب کافی نمی‌باشد.');
144
-        elseif ($successFlag == 6)
145
-            $this->notVerified('رمز واردشده اشتباه می‌باشد.');
146
-        elseif ($successFlag == 7)
147
-            $this->notVerified('تعداد درخواست‌ها بیش از حد مجاز می‌باشد.');
148
-        elseif ($successFlag == 8)
149
-            $this->notVerified('‌تعداد پرداخت اینترنتی روزانه بیش از حد مجاز می‌باشد.');
150
-        elseif ($successFlag == 9)
151
-            $this->notVerified('مبلغ پرداخت اینترنتی روزانه بیش از حد مجاز می‌باشد.');
152
-        elseif ($successFlag == 10)
153
-            $this->notVerified('‌صادرکننده‌ی کارت نامعتبر می‌باشد.');
154
-        elseif ($successFlag == 11)
155
-            $this->notVerified('‌خطای سوییچ');
156
-         elseif ($successFlag == 12)
157
-            $this->notVerified('کارت قابل دسترسی نمی‌باشد.');
132
+        if ($successFlag == -2) {
133
+                    $this->notVerified('خطای داخلی');
134
+        } elseif ($successFlag == -1) {
135
+                    $this->notVerified('در انتظار پردخت');
136
+        } elseif ($successFlag == 2) {
137
+                    $this->notVerified('پرداخت شده - تاییدنشده');
138
+        } elseif ($successFlag == 3) {
139
+                    $this->notVerified('لغوشده توسط کاربر');
140
+        } elseif ($successFlag == 4) {
141
+                    $this->notVerified('‌شماره کارت نامعتبر می‌باشد.');
142
+        } elseif ($successFlag == 5) {
143
+                    $this->notVerified('موجودی حساب کافی نمی‌باشد.');
144
+        } elseif ($successFlag == 6) {
145
+                    $this->notVerified('رمز واردشده اشتباه می‌باشد.');
146
+        } elseif ($successFlag == 7) {
147
+                    $this->notVerified('تعداد درخواست‌ها بیش از حد مجاز می‌باشد.');
148
+        } elseif ($successFlag == 8) {
149
+                    $this->notVerified('‌تعداد پرداخت اینترنتی روزانه بیش از حد مجاز می‌باشد.');
150
+        } elseif ($successFlag == 9) {
151
+                    $this->notVerified('مبلغ پرداخت اینترنتی روزانه بیش از حد مجاز می‌باشد.');
152
+        } elseif ($successFlag == 10) {
153
+                    $this->notVerified('‌صادرکننده‌ی کارت نامعتبر می‌باشد.');
154
+        } elseif ($successFlag == 11) {
155
+                    $this->notVerified('‌خطای سوییچ');
156
+        } elseif ($successFlag == 12) {
157
+                     $this->notVerified('کارت قابل دسترسی نمی‌باشد.');
158
+         }
158 159
         
159 160
 
160 161
         //start verfication
Please login to merge, or discard this patch.