Completed
Branch support-coverage (9b57a3)
by Kentaro
16:23 queued 06:37
created
src/Eccube/Form/Type/Admin/TaxRuleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/DeliveryTimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ProductClassType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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
 
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
@@ -102,7 +102,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step3Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/MasterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
             },
Please login to merge, or discard this patch.
src/Eccube/Form/Extension/DoctrineOrmExtension.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
         $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オプションが必要
Please login to merge, or discard this patch.
src/Eccube/Controller/Block/CartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Eccube/Controller/CartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.