Completed
Pull Request — master (#1504)
by Kentaro
60:07 queued 04:12
created
src/Eccube/Controller/Admin/Customer/CustomerController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $em->getConfiguration()->setSQLLogger(null);
220 220
 
221 221
         $response = new StreamedResponse();
222
-        $response->setCallback(function () use ($app, $request) {
222
+        $response->setCallback(function() use ($app, $request) {
223 223
 
224 224
             // CSV種別を元に初期化.
225 225
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
             // データ行の出力.
235 235
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
236
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
236
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
237 237
 
238 238
                 $Csvs = $csvService->getCsvs();
239 239
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/OrderController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $em->getConfiguration()->setSQLLogger(null);
222 222
 
223 223
         $response = new StreamedResponse();
224
-        $response->setCallback(function () use ($app, $request) {
224
+        $response->setCallback(function() use ($app, $request) {
225 225
 
226 226
             // CSV種別を元に初期化.
227 227
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
             // データ行の出力.
237 237
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
238
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
238
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
239 239
 
240 240
                 $Csvs = $csvService->getCsvs();
241 241
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $em->getConfiguration()->setSQLLogger(null);
290 290
 
291 291
         $response = new StreamedResponse();
292
-        $response->setCallback(function () use ($app, $request) {
292
+        $response->setCallback(function() use ($app, $request) {
293 293
 
294 294
             // CSV種別を元に初期化.
295 295
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING);
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
             // データ行の出力.
305 305
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
306
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
306
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
307 307
 
308 308
                 $Csvs = $csvService->getCsvs();
309 309
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $em->getConfiguration()->setSQLLogger(null);
197 197
 
198 198
         $response = new StreamedResponse();
199
-        $response->setCallback(function () use ($app, $request) {
199
+        $response->setCallback(function() use ($app, $request) {
200 200
 
201 201
             // CSV種別を元に初期化.
202 202
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
             // データ行の出力.
212 212
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
213
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
213
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
214 214
 
215 215
                 $Csvs = $csvService->getCsvs();
216 216
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $form = $builder->getForm();
259 259
 
260 260
         if (!$has_class) {
261
-            $ProductClass->setStockUnlimited((boolean)$ProductClass->getStockUnlimited());
261
+            $ProductClass->setStockUnlimited((boolean) $ProductClass->getStockUnlimited());
262 262
             $form['class']->setData($ProductClass);
263 263
         }
264 264
 
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
         $em->getConfiguration()->setSQLLogger(null);
647 647
 
648 648
         $response = new StreamedResponse();
649
-        $response->setCallback(function () use ($app, $request) {
649
+        $response->setCallback(function() use ($app, $request) {
650 650
 
651 651
             // CSV種別を元に初期化.
652 652
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT);
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
 
671 671
             // データ行の出力.
672 672
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
673
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
673
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
674 674
 
675 675
                 $Csvs = $csvService->getCsvs();
676 676
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/Shop/PaymentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         foreach ($Payments as $Payment) {
168 168
             if ($Payment->getId() != $id) {
169 169
                 $Payment->setRank($rank);
170
-                $rank ++;
170
+                $rank++;
171 171
             }
172 172
         }
173 173
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         );
182 182
         $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_DELETE_COMPLETE, $event);
183 183
 
184
-        $app->addSuccess('admin.delete.complete', 'admin') ;
184
+        $app->addSuccess('admin.delete.complete', 'admin');
185 185
 
186 186
         return $app->redirect($app->url('admin_setting_shop_payment'));
187 187
     }
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SecurityController.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
             if (count($allowHost) > 0) {
103 103
                 $form->get('admin_allow_host')->setData(Str::convertLineFeed(implode("\n", $allowHost)));
104 104
             }
105
-            $form->get('force_ssl')->setData((bool)$app['config']['force_ssl']);
105
+            $form->get('force_ssl')->setData((bool) $app['config']['force_ssl']);
106 106
         }
107 107
 
108 108
         return $app->render('Setting/System/security.twig', array(
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
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
                 'help' => 'メーラーバックエンドがSMTPかつSMTP-AUTH使用時のみ指定',
142 142
                 'required' => false,
143 143
             ))
144
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) use ($app) {
144
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) use ($app) {
145 145
                 $form = $event->getForm();
146 146
                 $data = $form->getData();
147 147
 
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
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
                 'required' => false,
149 149
                 'value' => 1,
150 150
             ))
151
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
151
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
152 152
                 $form = $event->getForm();
153 153
                 $data = $form->getData();
154 154
 
Please login to merge, or discard this patch.
src/Eccube/Repository/CustomerRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
         if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) {
149 149
             //スペース除去
150
-            $clean_key_multi = preg_replace('/\s+|[ ]+/u', '',$searchData['multi']);
150
+            $clean_key_multi = preg_replace('/\s+|[ ]+/u', '', $searchData['multi']);
151 151
             if (preg_match('/^\d+$/', $clean_key_multi)) {
152 152
                 $qb
153 153
                     ->andWhere('c.id = :customer_id')
Please login to merge, or discard this patch.