Passed
Push — master ( 0a9a1d...20acaf )
by mahdi
08:30
created
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         /**
50 50
          * Bind to service container.
51 51
          */
52
-        $this->app->bind('shetabit-payment', function () {
52
+        $this->app->bind('shetabit-payment', function() {
53 53
             $config = config('payment') ?? [];
54 54
 
55 55
             return new Payment($config);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $this->registerEvents();
59 59
 
60 60
         // use blade to render redirection form
61
-        Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) {
61
+        Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) {
62 62
             return view('shetabitPayment::redirectForm')->with(
63 63
                 [
64 64
                     'action' => $action,
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function registerEvents()
78 78
     {
79
-        Payment::addPurchaseListener(function ($driver, $invoice) {
79
+        Payment::addPurchaseListener(function($driver, $invoice) {
80 80
             event(new InvoicePurchasedEvent($driver, $invoice));
81 81
         });
82 82
 
83
-        Payment::addVerifyListener(function ($reciept, $driver, $invoice) {
83
+        Payment::addVerifyListener(function($reciept, $driver, $invoice) {
84 84
             event(new InvoiceVerifiedEvent($reciept, $driver, $invoice));
85 85
         });
86 86
     }
Please login to merge, or discard this patch.