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