Passed
Push — master ( 23fd5d...0bbd61 )
by mahdi
02:42
created
src/Drivers/Zarinpal/Strategies/Normal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $result = json_decode($response->getBody()->getContents(), true);
102 102
 
103 103
         // some error has happened
104
-        if (! empty($result['errors']) || empty($result['data']) || $result['data']['code'] != 100) {
104
+        if (!empty($result['errors']) || empty($result['data']) || $result['data']['code'] != 100) {
105 105
             throw new PurchaseFailedException($result['errors']['message'], $result['errors']['code']);
106 106
         }
107 107
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
         $result = json_decode($response->getBody()->getContents(), true);
163 163
 
164
-        if (empty($result['data']) || ! isset($result['data']['ref_id']) || ($result['data']['code'] != 100 && $result['data']['code'] != 101)) {
164
+        if (empty($result['data']) || !isset($result['data']['ref_id']) || ($result['data']['code'] != 100 && $result['data']['code'] != 101)) {
165 165
             $message = $result['errors']['message'];
166 166
             $code = $result['errors']['code'];
167 167
             throw new InvalidPaymentException($message, $code);
Please login to merge, or discard this patch.