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