@@ -55,7 +55,7 @@ |
||
55 | 55 | ->add('sandbox', CheckboxType::class, [ |
56 | 56 | 'label' => 'bitbag_sylius_braintree_plugin.ui.sandbox', |
57 | 57 | ]) |
58 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
58 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
59 | 59 | $data = $event->getData(); |
60 | 60 | |
61 | 61 | $data['payum.http_client'] = '@bitbag_sylius_braintree_plugin.api_client.braintree'; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | 'payum.action.capture' => new CaptureAction(), |
44 | 44 | |
45 | - 'payum.action.purchase' => function (ArrayObject $config) { |
|
45 | + 'payum.action.purchase' => function(ArrayObject $config) { |
|
46 | 46 | $action = new PurchaseAction(); |
47 | 47 | $action->setCardholderAuthenticationRequired($config['cardholderAuthenticationRequired']); |
48 | 48 | |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | |
52 | 52 | 'payum.action.convert_payment' => new ConvertPaymentAction(), |
53 | 53 | |
54 | - 'payum.action.obtain_payment_method_nonce' => function (ArrayObject $config) { |
|
54 | + 'payum.action.obtain_payment_method_nonce' => function(ArrayObject $config) { |
|
55 | 55 | $action = new ObtainPaymentMethodNonceAction($config['payum.template.obtain_payment_method_nonce']); |
56 | 56 | $action->setCardholderAuthenticationRequired($config['cardholderAuthenticationRequired']); |
57 | 57 | |
58 | 58 | return $action; |
59 | 59 | }, |
60 | 60 | |
61 | - 'payum.action.obtain_cardholder_authentication' => function (ArrayObject $config) { |
|
61 | + 'payum.action.obtain_cardholder_authentication' => function(ArrayObject $config) { |
|
62 | 62 | return new ObtainCardholderAuthenticationAction($config['payum.template.obtain_cardholder_authentication']); |
63 | 63 | }, |
64 | 64 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $config->defaults($config['payum.default_options']); |
83 | 83 | $config['payum.required_options'] = []; |
84 | 84 | |
85 | - $config['payum.api'] = function (ArrayObject $config) { |
|
85 | + $config['payum.api'] = function(ArrayObject $config) { |
|
86 | 86 | // $config->validateNotEmpty($config['payum.required_options']); |
87 | 87 | // |
88 | 88 | // return new Api((array) $config, $config['payum.http_client'], $config['httplug.message_factory']); |