@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ->add('molliePaymentMethods', ChoiceType::class, [ |
51 | 51 | 'label' => false, |
52 | 52 | 'choices' => $data, |
53 | - 'choice_attr' => function ($value) use ($images, $paymentFee) { |
|
53 | + 'choice_attr' => function($value) use ($images, $paymentFee) { |
|
54 | 54 | return [ |
55 | 55 | 'image' => $images[$value], |
56 | 56 | 'paymentFee' => $paymentFee[$value] |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | 'choices' => $issuers['ideal'] ?? null, |
63 | 63 | 'choice_value' => 'id', |
64 | 64 | 'choice_label' => 'name', |
65 | - 'choice_attr' => function ($value) { |
|
65 | + 'choice_attr' => function($value) { |
|
66 | 66 | return ['image' => $value->image->svg]; |
67 | 67 | }, |
68 | 68 | ]) |
69 | 69 | ->add('cartToken', HiddenType::class) |
70 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
70 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
71 | 71 | $data = $event->getData(); |
72 | 72 | |
73 | 73 | $data['selected_issuer'] = isset($data['issuers']) ? $data['issuers']->id : null; |