@@ -209,8 +209,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |