Completed
Pull Request — experimental/sf (#3157)
by Kentaro
151:58 queued 143:16
created
src/Eccube/Form/Type/Admin/DeliveryTimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $resolver->setDefaults([
56 56
             'data_class' => 'Eccube\Entity\DeliveryTime',
57
-            'query_builder' => function (EntityRepository $er) {
57
+            'query_builder' => function(EntityRepository $er) {
58 58
                 return $er
59 59
                     ->createQueryBuilder('dt')
60 60
                     ->orderBy('dt.sort_no', 'ASC');
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/OrderItemForShippingRegistrationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 ],
50 50
             ]);
51 51
 
52
-        $builder->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) {
52
+        $builder->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) {
53 53
             $form = $event->getForm();
54 54
             $orderItemId = $form['id']->getData();
55 55
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/PaymentRegisterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 'label' => 'paymentregister.label.commision',
73 73
             ])
74 74
             ->add('fixed', HiddenType::class)
75
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
75
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
76 76
                 $form = $event->getForm();
77 77
                 $ruleMax = $form['rule_max']->getData();
78 78
                 $ruleMin = $form['rule_min']->getData();
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/TaxRuleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 ],
67 67
             ]);
68 68
 
69
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
69
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
70 70
             /** @var TaxRule $TaxRule */
71 71
             $TaxRule = $event->getData();
72 72
             $qb = $this->taxRuleRepository->createQueryBuilder('t');
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ProductClassEditType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         if (!$this->baseInfoRepository->get()->isOptionProductTaxRule()) {
155 155
             return;
156 156
         }
157
-        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
157
+        $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
158 158
             $data = $event->getData();
159 159
             if (!$data instanceof ProductClass) {
160 160
                 return;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     protected function setCheckbox(FormBuilderInterface $builder)
175 175
     {
176
-        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
176
+        $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
177 177
             $data = $event->getData();
178 178
             if (!$data instanceof ProductClass) {
179 179
                 return;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             }
185 185
         });
186 186
 
187
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
187
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
188 188
             $form = $event->getForm();
189 189
             $data = $event->getData();
190 190
             $data->setVisible($form['checked']->getData() ? true : false);
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
     protected function addValidations(FormBuilderInterface $builder)
195 195
     {
196
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
196
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
197 197
             $form = $event->getForm();
198 198
             $data = $form->getData();
199 199
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/OrderItemType.php 1 patch
Spacing   +6 added lines, -10 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         // XXX price を priceIncTax にセットし直す
177 177
         // OrderItem::getTotalPrice でもやっているので、どこか一箇所にまとめたい
178
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
178
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
179 179
             /** @var \Eccube\Entity\OrderItem $OrderItem */
180 180
             $OrderItem = $event->getData();
181 181
             $TaxDisplayType = $OrderItem->getTaxDisplayType();
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
             $event->setData($OrderItem);
198 198
         });
199
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
199
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
200 200
             // モーダルからのPOST時に、金額等をセットする.
201 201
             if ('modal' === $this->requestStack->getCurrentRequest()->get('modal')) {
202 202
                 $data = $event->getData();
@@ -272,17 +272,13 @@  discard block
 block discarded – undo
272 272
                             $data['product_name'] = $Product->getName();
273 273
                             $data['product_code'] = $ProductClass->getCode();
274 274
                             $data['class_name1'] = $ProductClass->hasClassCategory1() ?
275
-                                $ProductClass->getClassCategory1()->getClassName() :
276
-                                null;
275
+                                $ProductClass->getClassCategory1()->getClassName() : null;
277 276
                             $data['class_name2'] = $ProductClass->hasClassCategory2() ?
278
-                                $ProductClass->getClassCategory2()->getClassName() :
279
-                                null;
277
+                                $ProductClass->getClassCategory2()->getClassName() : null;
280 278
                             $data['class_category_name1'] = $ProductClass->hasClassCategory1() ?
281
-                                $ProductClass->getClassCategory1()->getName() :
282
-                                null;
279
+                                $ProductClass->getClassCategory1()->getName() : null;
283 280
                             $data['class_category_name2'] = $ProductClass->hasClassCategory2() ?
284
-                                $ProductClass->getClassCategory2()->getName() :
285
-                                null;
281
+                                $ProductClass->getClassCategory2()->getName() : null;
286 282
                             $data['price'] = $ProductClass->getPrice02();
287 283
                             $data['quantity'] = empty($data['quantity']) ? 1 : $data['quantity'];
288 284
                             $data['tax_type'] = TaxType::TAXATION;
Please login to merge, or discard this patch.
src/Eccube/Form/Type/ShippingMultipleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public function buildForm(FormBuilderInterface $builder, array $options)
43 43
     {
44 44
         $builder
45
-            ->addEventListener(FormEvents::POST_SET_DATA, function ($event) {
45
+            ->addEventListener(FormEvents::POST_SET_DATA, function($event) {
46 46
                 /** @var \Eccube\Entity\OrderItem $data */
47 47
                 $data = $event->getData();
48 48
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.
src/Eccube/Form/Type/PriceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $max = $this->eccubeConfig['eccube_price_max'];
57 57
         $min = -$max;
58 58
 
59
-        $constraints = function (Options $options) use ($max, $min) {
59
+        $constraints = function(Options $options) use ($max, $min) {
60 60
             $constraints = [];
61 61
             // requiredがtrueに指定されている場合, NotBlankを追加
62 62
             if (isset($options['required']) && true === $options['required']) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step4Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
                 'label' => trans('step4.label.pass'),
93 93
                 'required' => false,
94 94
             ])
95
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
95
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
96 96
                 $form = $event->getForm();
97 97
                 $data = $form->getData();
98 98
 
Please login to merge, or discard this patch.