@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | throw new \LogicException('templateable form needs to have "templateName" field'); |
48 | 48 | } |
49 | 49 | |
50 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
50 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
51 | 51 | $data = $event->getData(); |
52 | 52 | |
53 | 53 | $templates = $this->templateFactory->templates(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $this->templateType($templateName)->buildForm($event->getForm(), $options); |
61 | 61 | }); |
62 | 62 | |
63 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($options) { |
|
63 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($options) { |
|
64 | 64 | $data = $event->getData(); |
65 | 65 | $templates = $this->templateFactory->templates(); |
66 | 66 | reset($templates); |