@@ -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); |
@@ -529,7 +529,7 @@ |
||
529 | 529 | { |
530 | 530 | $curl = curl_init($url); |
531 | 531 | |
532 | - $options = [ // オプション配列 |
|
532 | + $options = [// オプション配列 |
|
533 | 533 | //HEADER |
534 | 534 | CURLOPT_HTTPHEADER => [ |
535 | 535 | 'Authorization: '.base64_encode($authKey), |
@@ -94,15 +94,15 @@ |
||
94 | 94 | $this->entityManager->flush(); |
95 | 95 | |
96 | 96 | $event = new EventArgs( |
97 | - [ |
|
97 | + [ |
|
98 | 98 | 'form' => $form, |
99 | 99 | 'BaseInfo' => $this->BaseInfo, |
100 | - ], |
|
101 | - $request |
|
100 | + ], |
|
101 | + $request |
|
102 | 102 | ); |
103 | 103 | $this->eventDispatcher->dispatch( |
104 | - EccubeEvents::ADMIN_SETTING_SHOP_SHOP_INDEX_COMPLETE, |
|
105 | - $event |
|
104 | + EccubeEvents::ADMIN_SETTING_SHOP_SHOP_INDEX_COMPLETE, |
|
105 | + $event |
|
106 | 106 | ); |
107 | 107 | |
108 | 108 | $cacheUtil->clearCache(); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | $entity = new $entityName(); |
149 | 149 | $sortNo = 0; |
150 | 150 | $ids = array_map( |
151 | - function ($v) { |
|
151 | + function($v) { |
|
152 | 152 | return $v['id']; |
153 | 153 | }, |
154 | 154 | $data['data'] |