Passed
Pull Request — master (#142)
by Hashem
04:33 queued 01:44
created
src/Drivers/Sizpay/Sizpay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         ))->GetToken2Result;
78 78
         $result = json_decode($response);
79 79
 
80
-        if (! isset($result->ResCod) || ! in_array($result->ResCod, ['0', '00'])) {
80
+        if (!isset($result->ResCod) || !in_array($result->ResCod, ['0', '00'])) {
81 81
             // error has happened
82 82
             $message = $result->Message ?? 'خطای ناشناخته رخ داده';
83 83
             throw new PurchaseFailedException($message);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function verify() : ReceiptInterface
122 122
     {
123 123
         $resCode = Request::input('ResCod');
124
-        if (! in_array($resCode, array('0', '00'))) {
124
+        if (!in_array($resCode, array('0', '00'))) {
125 125
             $message = 'پرداخت توسط کاربر لغو شد';
126 126
             throw new InvalidPaymentException($message);
127 127
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $response = $client->Confirm2($data)->Confirm2Result;
140 140
         $result = json_decode($response);
141 141
 
142
-        if (! isset($result->ResCod) || ! in_array($result->ResCod, array('0', '00'))) {
142
+        if (!isset($result->ResCod) || !in_array($result->ResCod, array('0', '00'))) {
143 143
             $message = $result->Message ?? 'خطا در انجام عملیات رخ داده است';
144 144
             throw new InvalidPaymentException($message);
145 145
         }
Please login to merge, or discard this patch.