Passed
Push — master ( c1636a...437f23 )
by mahdi
03:29
created
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         /**
25 25
          * Bind to service container.
26 26
          */
27
-        $this->app->bind('shetabit-payment', function () {
27
+        $this->app->bind('shetabit-payment', function() {
28 28
             return new PaymentManager(config('payment'));
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Drivers/Idpay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      */
100 100
     public function pay()
101 101
     {
102
-        $apiUrl =  $this->settings->apiPaymentUrl;
102
+        $apiUrl = $this->settings->apiPaymentUrl;
103 103
 
104 104
         // use sandbox url if we are in sandbox mode
105 105
         if (!empty($this->settings->sandbox)) {
Please login to merge, or discard this patch.
src/Drivers/Paystar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     public function pay()
97 97
     {
98
-        $apiUrl =  $this->settings->apiPaymentUrl;
98
+        $apiUrl = $this->settings->apiPaymentUrl;
99 99
         $payUrl = $apiUrl.$this->invoice->getTransactionId();
100 100
 
101 101
         // redirect using laravel logic
Please login to merge, or discard this patch.
src/Drivers/Yekpay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function __construct(Invoice $invoice, $settings)
33 33
     {
34 34
         $this->invoice($invoice);
35
-        $this->settings = (object)$settings;
35
+        $this->settings = (object) $settings;
36 36
     }
37 37
 
38 38
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $data->merchantId = $this->settings->merchantId;
67 67
         $data->amount = $this->invoice->getAmount();
68 68
         $data->callback = $this->settings->callbackUrl;
69
-        $data->orderNumber = intval(1, time()) . crc32($this->invoice->getUuid());
69
+        $data->orderNumber = intval(1, time()).crc32($this->invoice->getUuid());
70 70
 
71 71
         $data->fromCurrencyCode = 978;
72 72
         $data->toCurrencyCode = 364;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function pay()
105 105
     {
106
-        $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId();
106
+        $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId();
107 107
 
108 108
         // redirect using laravel logic
109 109
         return redirect()->to($payUrl);
Please login to merge, or discard this patch.
src/Drivers/Zarinpal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function __construct(Invoice $invoice, $settings)
41 41
     {
42 42
         $this->invoice($invoice);
43
-        $this->settings = (object)$settings;
43
+        $this->settings = (object) $settings;
44 44
         $this->client = new Client();
45 45
     }
46 46
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function pay()
91 91
     {
92
-        $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId();
92
+        $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId();
93 93
 
94 94
         // redirect using laravel logic
95 95
         return redirect()->to($payUrl);
Please login to merge, or discard this patch.
src/Drivers/Irankish.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function __construct(Invoice $invoice, $settings)
33 33
     {
34 34
         $this->invoice($invoice);
35
-        $this->settings = (object)$settings;
35
+        $this->settings = (object) $settings;
36 36
     }
37 37
 
38 38
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $soap = new \SoapClient($this->settings->apiVerificationUrl);
110 110
         $response = $soap->KicccPaymentsVerification($data);
111 111
 
112
-        $status = (int)($response->KicccPaymentsVerificationResult);
112
+        $status = (int) ($response->KicccPaymentsVerificationResult);
113 113
 
114 114
         $this->invoice->refId($data['referenceNumber']);
115 115
 
Please login to merge, or discard this patch.