Passed
Pull Request — master (#159)
by
unknown
02:30
created
src/Drivers/Azki/Azki.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -209,8 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         if (($response->getStatusCode() === NULL or $response->getStatusCode() != 200) || $response_array['rsCode'] != self::SUCCESSFUL) {
211 211
             $this->purchaseFailed($response_array['rsCode']);
212
-        }
213
-        else {
212
+        } else {
214 213
             return $response_array['result'];
215 214
         }
216 215
 
@@ -250,8 +249,7 @@  discard block
 block discarded – undo
250 249
 
251 250
         if (array_key_exists($status, $translations)) {
252 251
             throw new PurchaseFailedException($translations[$status]);
253
-        }
254
-        else {
252
+        } else {
255 253
             throw new PurchaseFailedException('خطای ناشناخته ای رخ داده است.');
256 254
         }
257 255
     }
@@ -296,8 +294,7 @@  discard block
 block discarded – undo
296 294
 
297 295
         if (array_key_exists($status, $translations)) {
298 296
             throw new PurchaseFailedException("تراکنش در وضعیت " . $translations[$status] . " است.");
299
-        }
300
-        else {
297
+        } else {
301 298
             throw new PurchaseFailedException('خطای ناشناخته ای رخ داده است.');
302 299
         }
303 300
     }
Please login to merge, or discard this patch.