Passed
Pull Request — master (#159)
by
unknown
02:26
created
src/Drivers/Azki/Azki.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function __construct(Invoice $invoice, $settings)
65 65
     {
66 66
         $this->invoice($invoice);
67
-        $this->settings = (object)$settings;
67
+        $this->settings = (object) $settings;
68 68
         $this->client   = new Client();
69 69
     }
70 70
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $callback    = $this->settings->callbackUrl;
85 85
         $fallback    = $this->settings->fallbackUrl;
86 86
         $sub_url     = self::subUrls['purchase'];
87
-        $url         = $this->settings->apiPaymentUrl . $sub_url;
87
+        $url         = $this->settings->apiPaymentUrl.$sub_url;
88 88
 
89 89
         $signature = $this->makeSignature(
90 90
             $sub_url,
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     private function getPaymentStatus()
256 256
     {
257 257
         $sub_url = self::subUrls['paymentStatus'];
258
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
258
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
259 259
 
260 260
         $signature = $this->makeSignature(
261 261
             $sub_url,
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         ];
293 293
 
294 294
         if (array_key_exists($status, $translations)) {
295
-            throw new PurchaseFailedException("تراکنش در وضعیت " . $translations[$status] . " است.");
295
+            throw new PurchaseFailedException("تراکنش در وضعیت ".$translations[$status]." است.");
296 296
         } else {
297 297
             throw new PurchaseFailedException('خطای ناشناخته ای رخ داده است.');
298 298
         }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
 
318 318
         $sub_url = self::subUrls['verify'];
319
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
319
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
320 320
 
321 321
         $signature = $this->makeSignature(
322 322
             $sub_url,
Please login to merge, or discard this patch.