@@ -76,7 +76,7 @@ |
||
76 | 76 | ], |
77 | 77 | ]); |
78 | 78 | |
79 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
79 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
80 | 80 | /** @var TaxRule $TaxRule */ |
81 | 81 | $TaxRule = $event->getData(); |
82 | 82 | $qb = $this->taxRuleRepository->createQueryBuilder('t'); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | $resolver->setDefaults([ |
66 | 66 | 'data_class' => 'Eccube\Entity\DeliveryTime', |
67 | - 'query_builder' => function (EntityRepository $er) { |
|
67 | + 'query_builder' => function(EntityRepository $er) { |
|
68 | 68 | return $er |
69 | 69 | ->createQueryBuilder('dt') |
70 | 70 | ->orderBy('dt.sort_no', 'ASC'); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | 'required' => false, |
135 | 135 | 'placeholder' => 'productclass.placeholder.not_specified', |
136 | 136 | ]) |
137 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
137 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
138 | 138 | $form = $event->getForm(); |
139 | 139 | $data = $form->getData(); |
140 | 140 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | 'label' => trans('step4.label.pass'), |
103 | 103 | 'required' => false, |
104 | 104 | ]) |
105 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
105 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
106 | 106 | $form = $event->getForm(); |
107 | 107 | $data = $form->getData(); |
108 | 108 |
@@ -149,7 +149,7 @@ |
||
149 | 149 | 'label' => trans('step3.label.smtp_pass'), |
150 | 150 | 'required' => false, |
151 | 151 | ]) |
152 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
152 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
153 | 153 | $form = $event->getForm(); |
154 | 154 | $data = $form->getData(); |
155 | 155 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | 'expanded' => false, |
45 | 45 | 'required' => false, |
46 | 46 | 'placeholder' => false, |
47 | - 'query_builder' => function (EntityRepository $er) { |
|
47 | + 'query_builder' => function(EntityRepository $er) { |
|
48 | 48 | return $er->createQueryBuilder('m') |
49 | 49 | ->orderBy('m.sort_no', 'ASC'); |
50 | 50 | }, |
@@ -66,7 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | $builder->addEventListener( |
68 | 68 | FormEvents::PRE_SET_DATA, |
69 | - function (FormEvent $event) { |
|
69 | + function(FormEvent $event) { |
|
70 | 70 | $form = $event->getForm(); |
71 | 71 | $config = $form->getConfig(); |
72 | 72 | // data_classオプションが必要 |
@@ -49,13 +49,13 @@ |
||
49 | 49 | { |
50 | 50 | $Carts = $this->cartService->getCarts(); |
51 | 51 | |
52 | - $totalQuantity = array_reduce($Carts, function ($total, $Cart) { |
|
52 | + $totalQuantity = array_reduce($Carts, function($total, $Cart) { |
|
53 | 53 | /* @var Cart $Cart */ |
54 | 54 | $total += $Cart->getTotalQuantity(); |
55 | 55 | |
56 | 56 | return $total; |
57 | 57 | }, 0); |
58 | - $totalPrice = array_reduce($Carts, function ($total, $Cart) { |
|
58 | + $totalPrice = array_reduce($Carts, function($total, $Cart) { |
|
59 | 59 | /* @var Cart $Cart */ |
60 | 60 | $total += $Cart->getTotalPrice(); |
61 | 61 |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | $quantity = 0; |
92 | 92 | $isDeliveryFree = false; |
93 | 93 | |
94 | - $totalQuantity = array_reduce($Carts, function ($total, $Cart) { |
|
94 | + $totalQuantity = array_reduce($Carts, function($total, $Cart) { |
|
95 | 95 | /* @var Cart $Cart */ |
96 | 96 | $total += $Cart->getQuantity(); |
97 | 97 | |
98 | 98 | return $total; |
99 | 99 | }, 0); |
100 | - $totalPrice = array_reduce($Carts, function ($total, $Cart) { |
|
100 | + $totalPrice = array_reduce($Carts, function($total, $Cart) { |
|
101 | 101 | /* @var Cart $Cart */ |
102 | 102 | $total += $Cart->getTotalPrice(); |
103 | 103 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | protected function execPurchaseFlow($Carts) |
123 | 123 | { |
124 | 124 | /** @var PurchaseFlowResult[] $flowResults */ |
125 | - $flowResults = array_map(function ($Cart) { |
|
125 | + $flowResults = array_map(function($Cart) { |
|
126 | 126 | $purchaseContext = new PurchaseContext($Cart, $this->getUser()); |
127 | 127 | |
128 | 128 | return $this->purchaseFlow->calculate($Cart, $purchaseContext); |