@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function register(Container $app) |
11 | 11 | { |
12 | - $app['payment.method'] = $app->protect(function ($clazz, $form) use ($app) { |
|
12 | + $app['payment.method'] = $app->protect(function($clazz, $form) use ($app) { |
|
13 | 13 | $PaymentMethod = new $clazz(); |
14 | 14 | $PaymentMethod->setApplication($app); |
15 | 15 | $PaymentMethod->setFormType($form); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | return $PaymentMethod; |
18 | 18 | }); |
19 | 19 | |
20 | - $app['payment.method.request'] = $app->protect(function ($clazz, $form, $request) use ($app) { |
|
20 | + $app['payment.method.request'] = $app->protect(function($clazz, $form, $request) use ($app) { |
|
21 | 21 | $PaymentMethod = new $clazz(); |
22 | 22 | $PaymentMethod->setApplication($app); |
23 | 23 | $PaymentMethod->setFormType($form); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | return $PaymentMethod; |
27 | 27 | }); |
28 | 28 | |
29 | - $app['eccube.service.payment'] = $app->protect(function ($clazz) use ($app) { |
|
29 | + $app['eccube.service.payment'] = $app->protect(function($clazz) use ($app) { |
|
30 | 30 | $Service = new $clazz($app['request_stack']); |
31 | 31 | |
32 | 32 | return $Service; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function register(Container $app) |
19 | 19 | { |
20 | - $app['eccube.queries'] = function () { |
|
20 | + $app['eccube.queries'] = function() { |
|
21 | 21 | return new \Eccube\Doctrine\Query\Queries(); |
22 | 22 | }; |
23 | 23 | } |
@@ -41,14 +41,14 @@ |
||
41 | 41 | */ |
42 | 42 | public function buildForm(FormBuilderInterface $builder, array $options) |
43 | 43 | { |
44 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
44 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
45 | 45 | $options = $event->getForm()->getConfig()->getOptions(); |
46 | 46 | if (!$event->getData()) { |
47 | 47 | $data = current(array_keys($options['choice_loader']->loadChoiceList()->getValues())); |
48 | 48 | $event->setData($data); |
49 | 49 | } |
50 | 50 | }); |
51 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
51 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
52 | 52 | $options = $event->getForm()->getConfig()->getOptions(); |
53 | 53 | $values = $options['choice_loader']->loadChoiceList()->getValues(); |
54 | 54 | if (!in_array($event->getData(), $values)) { |
@@ -41,14 +41,14 @@ |
||
41 | 41 | */ |
42 | 42 | public function buildForm(FormBuilderInterface $builder, array $options) |
43 | 43 | { |
44 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
44 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
45 | 45 | $options = $event->getForm()->getConfig()->getOptions(); |
46 | 46 | if (!$event->getData()) { |
47 | 47 | $data = current(array_keys($options['choice_loader']->loadChoiceList()->getValues())); |
48 | 48 | $event->setData($data); |
49 | 49 | } |
50 | 50 | }); |
51 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
51 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
52 | 52 | $options = $event->getForm()->getConfig()->getOptions(); |
53 | 53 | $values = $options['choice_loader']->loadChoiceList()->getValues(); |
54 | 54 | if (!in_array($event->getData(), $values)) { |