Completed
Pull Request — master (#375)
by Paul
06:11
created
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         //we use the PRE_SUBMIT event to set the mode option
77 77
         $builder->addEventListener(
78 78
             FormEvents::PRE_SUBMIT,
79
-            function (FormEvent $event) use ($options) {
79
+            function(FormEvent $event) use ($options) {
80 80
                 //we get the raw data for the widget form
81 81
                 $rawData = $event->getData();
82 82
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $builder->addEventListener(
105 105
             FormEvents::PRE_SET_DATA,
106
-            function (FormEvent $event) use ($options) {
106
+            function(FormEvent $event) use ($options) {
107 107
                 $dataSources = $options['dataSources']->getDataSources();
108 108
                 $widget = $event->getData();
109 109
                 foreach ($dataSources as $alias => $dataSource) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         );
119 119
         $builder->addEventListener(
120 120
             FormEvents::POST_SUBMIT,
121
-            function (FormEvent $event) use ($options) {
121
+            function(FormEvent $event) use ($options) {
122 122
                 $widget = $event->getData();
123 123
                 /** @var Criteria $criteria */
124 124
                 foreach ($widget->getCriterias() as $criteria) {
Please login to merge, or discard this patch.