Passed
Push — master ( 6fd703...fda00a )
by mahdi
03:25
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
@@ -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/Bitpay.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/Nextpay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
         $body = json_decode($response->getBody()->getContents(), true);
73 73
 
74
-        if (empty($body['code']) || $body['code'] != -1 ) {
74
+        if (empty($body['code']) || $body['code'] != -1) {
75 75
             // some error has happened
76 76
         } else {
77 77
             $this->invoice->transactionId($body['trans_id']);
Please login to merge, or discard this patch.
src/Drivers/Yekpay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         $response = json_decode($client->verify($data));
130 130
 
131 131
         if ($response->Code != 100) {
132
-            $this->notVerified( $transaction->message ?? 'payment failed');
132
+            $this->notVerified($transaction->message ?? 'payment failed');
133 133
         } else {
134 134
             //"Success Payment with reference: $response->Reference and message: $transaction->message";
135 135
         }
Please login to merge, or discard this patch.