Passed
Push — master ( b95633...6fdf7f )
by mahdi
03:20
created
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function register()
49 49
     {
50
-        Request::overwrite('input', function ($key) {
50
+        Request::overwrite('input', function($key) {
51 51
             return \request($key);
52 52
         });
53 53
 
54 54
         /**
55 55
          * Bind to service container.
56 56
          */
57
-        $this->app->bind('shetabit-payment', function () {
57
+        $this->app->bind('shetabit-payment', function() {
58 58
             $config = config('payment') ?? [];
59 59
 
60 60
             return new Payment($config);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->registerEvents();
64 64
 
65 65
         // use blade to render redirection form
66
-        Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) {
66
+        Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) {
67 67
             return view('shetabitPayment::redirectForm')->with(
68 68
                 [
69 69
                     'action' => $action,
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function registerEvents()
83 83
     {
84
-        Payment::addPurchaseListener(function ($driver, $invoice) {
84
+        Payment::addPurchaseListener(function($driver, $invoice) {
85 85
             event(new InvoicePurchasedEvent($driver, $invoice));
86 86
         });
87 87
 
88
-        Payment::addVerifyListener(function ($reciept, $driver, $invoice) {
88
+        Payment::addVerifyListener(function($reciept, $driver, $invoice) {
89 89
             event(new InvoiceVerifiedEvent($reciept, $driver, $invoice));
90 90
         });
91 91
     }
Please login to merge, or discard this patch.