@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | ]) |
57 | 57 | ], |
58 | 58 | 'choices' => $data, |
59 | - 'choice_attr' => function ($value) use ($images, $paymentFee) { |
|
59 | + 'choice_attr' => function($value) use ($images, $paymentFee) { |
|
60 | 60 | return [ |
61 | 61 | 'image' => $images[$value], |
62 | 62 | 'paymentFee' => $paymentFee[$value] |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | 'choices' => $issuers['ideal'] ?? null, |
69 | 69 | 'choice_value' => 'id', |
70 | 70 | 'choice_label' => 'name', |
71 | - 'choice_attr' => function ($value) { |
|
71 | + 'choice_attr' => function($value) { |
|
72 | 72 | return ['image' => $value->image->svg]; |
73 | 73 | }, |
74 | 74 | ]) |
75 | 75 | ->add('cartToken', HiddenType::class) |
76 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
76 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
77 | 77 | $data = $event->getData(); |
78 | 78 | |
79 | 79 | $data['selected_issuer'] = isset($data['issuers']) ? $data['issuers']->id : null; |