Passed
Pull Request — master (#162)
by
unknown
02:37
created
src/Drivers/Azki/Azki.php 1 patch
Spacing   +7 added lines, -7 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
         $this->convertAmountItems();
70 70
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 ? $this->settings->fallbackUrl
89 89
                 : $callback;
90 90
         $sub_url     = self::subUrls['purchase'];
91
-        $url         = $this->settings->apiPaymentUrl . $sub_url;
91
+        $url         = $this->settings->apiPaymentUrl.$sub_url;
92 92
 
93 93
         $signature = $this->makeSignature(
94 94
             $sub_url,
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
          *
180 180
          */
181 181
 
182
-        $new_items = array_map(function ($item) {
183
-            $item['amount'] *= 10;  // convert toman to rial
182
+        $new_items = array_map(function($item) {
183
+            $item['amount'] *= 10; // convert toman to rial
184 184
             return $item;
185 185
         },
186 186
             $this->invoice->getDetails()['items'] ?? []
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     private function getPaymentStatus()
266 266
     {
267 267
         $sub_url = self::subUrls['paymentStatus'];
268
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
268
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
269 269
 
270 270
         $signature = $this->makeSignature(
271 271
             $sub_url,
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         ];
303 303
 
304 304
         if (array_key_exists($status, $translations)) {
305
-            throw new PurchaseFailedException("تراکنش در وضعیت " . $translations[$status] . " است.");
305
+            throw new PurchaseFailedException("تراکنش در وضعیت ".$translations[$status]." است.");
306 306
         } else {
307 307
             throw new PurchaseFailedException('خطای ناشناخته ای رخ داده است.');
308 308
         }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     private function VerifyTransaction()
326 326
     {
327 327
         $sub_url = self::subUrls['verify'];
328
-        $url     = $this->settings->apiPaymentUrl . $sub_url;
328
+        $url     = $this->settings->apiPaymentUrl.$sub_url;
329 329
 
330 330
         $signature = $this->makeSignature(
331 331
             $sub_url,
Please login to merge, or discard this patch.