Passed
Pull Request — master (#159)
by
unknown
02:30
created
src/Drivers/Azki/Azki.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function __construct(Invoice $invoice, $settings)
66 66
     {
67 67
         $this->invoice($invoice);
68
-        $this->settings = (object)$settings;
68
+        $this->settings = (object) $settings;
69 69
         $this->client   = new Client();
70 70
     }
71 71
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $callback    = $this->settings->callbackUrl;
86 86
         $fallback    = $this->settings->fallbackUrl;
87 87
         $sub_url     = self::subUrls['purchase'];
88
-        $url         = $this->settings->apiPaymentUrl . $sub_url;
88
+        $url         = $this->settings->apiPaymentUrl.$sub_url;
89 89
 
90 90
         $signature = $this->makeSignature(
91 91
             $sub_url,
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     private function getPaymentStatus()
260 260
     {
261 261
         $sub_url = self::subUrls['paymentStatus'];
262
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
262
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
263 263
 
264 264
         $signature = $this->makeSignature(
265 265
             $sub_url,
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
         ];
296 296
 
297 297
         if (array_key_exists($status, $translations)) {
298
-            throw new PurchaseFailedException("تراکنش در وضعیت " . $translations[$status] . " است.");
298
+            throw new PurchaseFailedException("تراکنش در وضعیت ".$translations[$status]." است.");
299 299
         }
300 300
         else {
301 301
             throw new PurchaseFailedException('خطای ناشناخته ای رخ داده است.');
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     {
321 321
 
322 322
         $sub_url = self::subUrls['verify'];
323
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
323
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
324 324
 
325 325
         $signature = $this->makeSignature(
326 326
             $sub_url,
Please login to merge, or discard this 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.