@@ -82,7 +82,7 @@ |
||
| 82 | 82 | 'label' => 'paymentregister.label.commision', |
| 83 | 83 | ]) |
| 84 | 84 | ->add('fixed', HiddenType::class) |
| 85 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
| 85 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
| 86 | 86 | $form = $event->getForm(); |
| 87 | 87 | $ruleMax = $form['rule_max']->getData(); |
| 88 | 88 | $ruleMin = $form['rule_min']->getData(); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | 'required' => false, |
| 178 | 178 | 'label' => 'PC', |
| 179 | 179 | 'class' => Layout::class, |
| 180 | - 'query_builder' => function (EntityRepository $er) { |
|
| 180 | + 'query_builder' => function(EntityRepository $er) { |
|
| 181 | 181 | $DeviceType = $this->deviceTypeRepository->find(DeviceType::DEVICE_TYPE_PC); |
| 182 | 182 | |
| 183 | 183 | return $er->createQueryBuilder('l') |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | 'required' => false, |
| 193 | 193 | 'label' => 'mainedit.label.smartphone', |
| 194 | 194 | 'class' => Layout::class, |
| 195 | - 'query_builder' => function (EntityRepository $er) { |
|
| 195 | + 'query_builder' => function(EntityRepository $er) { |
|
| 196 | 196 | $DeviceType = $this->deviceTypeRepository->find(DeviceType::DEVICE_TYPE_SP); |
| 197 | 197 | |
| 198 | 198 | return $er->createQueryBuilder('l') |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | ->orderBy('l.id', 'DESC'); |
| 202 | 202 | }, |
| 203 | 203 | ]) |
| 204 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
| 204 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
| 205 | 205 | $Page = $event->getData(); |
| 206 | 206 | if (is_null($Page->getId())) { |
| 207 | 207 | return; |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | 219 | }) |
| 220 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 220 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 221 | 221 | $form = $event->getForm(); |
| 222 | 222 | |
| 223 | 223 | /** @var Page $Page */ |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | ->add('class_name2', EntityType::class, [ |
| 32 | 32 | 'class' => ClassName::class, |
| 33 | 33 | 'placeholder' => '規格2を選択してください', |
| 34 | - 'constraints' => new Callback(function ( |
|
| 34 | + 'constraints' => new Callback(function( |
|
| 35 | 35 | ClassName $ClassName2 = null, |
| 36 | 36 | ExecutionContextInterface $context |
| 37 | 37 | ) { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ->add('save', SubmitType::class); |
| 55 | 55 | |
| 56 | 56 | if ($options['product_classes_exist']) { |
| 57 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 57 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 58 | 58 | $form = $event->getForm(); |
| 59 | 59 | $ProductClasses = $form['product_classes']->getData(); |
| 60 | 60 | $hasVisible = false; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | 'required' => false, |
| 176 | 176 | 'label' => 'shipping.label.shipping_company', |
| 177 | 177 | 'class' => 'Eccube\Entity\Delivery', |
| 178 | - 'choice_label' => function (Delivery $Delivery) { |
|
| 178 | + 'choice_label' => function(Delivery $Delivery) { |
|
| 179 | 179 | return $Delivery->isVisible() |
| 180 | 180 | ? $Delivery->getServiceName() |
| 181 | 181 | : $Delivery->getServiceName().trans('delivery.text.hidden'); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | 'required' => false, |
| 228 | 228 | 'data' => true, |
| 229 | 229 | ]) |
| 230 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
| 230 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
| 231 | 231 | /** @var \Eccube\Entity\Shipping $data */ |
| 232 | 232 | $data = $event->getData(); |
| 233 | 233 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | 'placeholder' => 'shipping.placeholder.not_specified', |
| 249 | 249 | 'required' => false, |
| 250 | 250 | 'data' => $DeliveryTime, |
| 251 | - 'query_builder' => function (EntityRepository $er) use ($Delivery) { |
|
| 251 | + 'query_builder' => function(EntityRepository $er) use ($Delivery) { |
|
| 252 | 252 | $qb = $er->createQueryBuilder('dt'); |
| 253 | 253 | if ($Delivery) { |
| 254 | 254 | $qb |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | 'mapped' => false, |
| 262 | 262 | ]); |
| 263 | 263 | }) |
| 264 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 264 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 265 | 265 | $data = $event->getData(); |
| 266 | 266 | $form = $event->getForm(); |
| 267 | 267 | |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | 'choice_label' => 'delivery_time', |
| 283 | 283 | 'placeholder' => 'shipping.placeholder.not_specified', |
| 284 | 284 | 'required' => false, |
| 285 | - 'query_builder' => function (EntityRepository $er) use ($Delivery) { |
|
| 285 | + 'query_builder' => function(EntityRepository $er) use ($Delivery) { |
|
| 286 | 286 | $qb = $er->createQueryBuilder('dt'); |
| 287 | 287 | if ($Delivery) { |
| 288 | 288 | $qb |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | 'mapped' => false, |
| 296 | 296 | ]); |
| 297 | 297 | }) |
| 298 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 298 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 299 | 299 | $form = $event->getForm(); |
| 300 | 300 | $Shipping = $event->getData(); |
| 301 | 301 | $Delivery = $Shipping->getDelivery(); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | 'label' => false, |
| 45 | 45 | 'class' => 'Eccube\Entity\Page', |
| 46 | 46 | 'choice_label' => 'name', |
| 47 | - 'query_builder' => function (EntityRepository $er) { |
|
| 47 | + 'query_builder' => function(EntityRepository $er) { |
|
| 48 | 48 | return $er |
| 49 | 49 | ->createQueryBuilder('l') |
| 50 | 50 | ->where('l.id <> 0') |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | 'class' => 'Eccube\Entity\Master\OrderStatus', |
| 231 | 231 | 'choice_label' => 'name', |
| 232 | 232 | 'placeholder' => 'order.placeholder.select', |
| 233 | - 'query_builder' => function ($er) { |
|
| 233 | + 'query_builder' => function($er) { |
|
| 234 | 234 | return $er->createQueryBuilder('o') |
| 235 | 235 | ->orderBy('o.sort_no', 'ASC'); |
| 236 | 236 | }, |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | ))); |
| 267 | 267 | |
| 268 | 268 | // 選択された支払い方法の名称をエンティティにコピーする |
| 269 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 269 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 270 | 270 | $Order = $event->getData(); |
| 271 | 271 | $Payment = $Order->getPayment(); |
| 272 | 272 | if (!is_null($Payment)) { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | }); |
| 276 | 276 | // 会員受注の場合、会員の性別/職業/誕生日をエンティティにコピーする |
| 277 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 277 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 278 | 278 | $Order = $event->getData(); |
| 279 | 279 | $Customer = $Order->getCustomer(); |
| 280 | 280 | if (!is_null($Customer)) { |
@@ -79,8 +79,8 @@ |
||
| 79 | 79 | new Assert\NotBlank(), |
| 80 | 80 | new Assert\Length(['max' => $this->eccubeConfig['eccube_stext_len']]), |
| 81 | 81 | new Assert\Regex([ |
| 82 | - 'pattern' => '/^[0-9a-zA-Z]+$/', |
|
| 83 | - ]), |
|
| 82 | + 'pattern' => '/^[0-9a-zA-Z]+$/', |
|
| 83 | + ]), |
|
| 84 | 84 | ], |
| 85 | 85 | 'data' => $this->eccubeConfig->get('eccube_admin_route'), |
| 86 | 86 | ]) |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | 'required' => false, |
| 98 | 98 | 'data' => $this->eccubeConfig->get('eccube_force_ssl'), |
| 99 | 99 | ]) |
| 100 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
| 100 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
| 101 | 101 | $form = $event->getForm(); |
| 102 | 102 | $data = $form->getData(); |
| 103 | 103 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'mapped' => false, |
| 98 | 98 | 'expanded' => true, |
| 99 | 99 | 'choices' => $this->categoryRepository->getList(null, true), |
| 100 | - 'choice_value' => function (Category $Category = null) { |
|
| 100 | + 'choice_value' => function(Category $Category = null) { |
|
| 101 | 101 | return $Category ? $Category->getId() : null; |
| 102 | 102 | }, |
| 103 | 103 | ]) |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | // 詳細な説明 |
| 106 | 106 | ->add('Tag', EntityType::class, [ |
| 107 | 107 | 'class' => 'Eccube\Entity\Tag', |
| 108 | - 'query_builder' => function ($er) { |
|
| 108 | + 'query_builder' => function($er) { |
|
| 109 | 109 | return $er->createQueryBuilder('t') |
| 110 | 110 | ->orderBy('t.sort_no', 'DESC'); |
| 111 | 111 | }, |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | 'choice_label' => 'id', |
| 105 | 105 | ]) |
| 106 | 106 | ->add('id', HiddenType::class) |
| 107 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
| 107 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
| 108 | 108 | $form = $event->getForm(); |
| 109 | 109 | $file_name = $form['file_name']->getData(); |
| 110 | 110 | $DeviceType = $form['DeviceType']->getData(); |