Completed
Pull Request — experimental/sf (#3157)
by Kentaro
151:58 queued 143:16
created
src/Eccube/Controller/Admin/Product/CategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         $em->getConfiguration()->setSQLLogger(null);
276 276
 
277 277
         $response = new StreamedResponse();
278
-        $response->setCallback(function () use ($request) {
278
+        $response->setCallback(function() use ($request) {
279 279
             // CSV種別を元に初期化.
280 280
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_CATEGORY);
281 281
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
             // データ行の出力.
290 290
             $this->csvExportService->setExportQueryBuilder($qb);
291
-            $this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
291
+            $this->csvExportService->exportData(function($entity, $csvService) use ($request) {
292 292
                 $Csvs = $csvService->getCsvs();
293 293
 
294 294
                 /** @var $Category \Eccube\Entity\Category */
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
 
181 181
                         return $this->render($form, $headers);
182 182
                     }
183
-                    $getId = function ($item) {
183
+                    $getId = function($item) {
184 184
                         return $item['id'];
185 185
                     };
186
-                    $requireHeader = array_keys(array_map($getId, array_filter($headers, function ($value) {
186
+                    $requireHeader = array_keys(array_map($getId, array_filter($headers, function($value) {
187 187
                         return $value['required'];
188 188
                     })));
189 189
 
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
             throw new NotFoundHttpException();
681 681
         }
682 682
 
683
-        $response->setCallback(function () use ($request, $headers) {
683
+        $response->setCallback(function() use ($request, $headers) {
684 684
             // ヘッダ行の出力
685 685
             $row = [];
686 686
             foreach ($headers as $key => $value) {
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
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
 
633 633
         // ツリー表示のため、ルートからのカテゴリを取得
634 634
         $TopCategories = $this->categoryRepository->getList(null);
635
-        $ChoicedCategoryIds = array_map(function ($Category) {
635
+        $ChoicedCategoryIds = array_map(function($Category) {
636 636
             return $Category->getId();
637 637
         }, $form->get('Category')->getData());
638 638
 
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
         $em->getConfiguration()->setSQLLogger(null);
880 880
 
881 881
         $response = new StreamedResponse();
882
-        $response->setCallback(function () use ($request) {
882
+        $response->setCallback(function() use ($request) {
883 883
             // CSV種別を元に初期化.
884 884
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_PRODUCT);
885 885
 
@@ -918,7 +918,7 @@  discard block
 block discarded – undo
918 918
             // データ行の出力.
919 919
             $this->csvExportService->setExportQueryBuilder($qb);
920 920
 
921
-            $this->csvExportService->exportData(function ($entity, CsvExportService $csvService) use ($request) {
921
+            $this->csvExportService->exportData(function($entity, CsvExportService $csvService) use ($request) {
922 922
                 $Csvs = $csvService->getCsvs();
923 923
 
924 924
                 /** @var $Product \Eccube\Entity\Product */
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductClassController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         if ($Product->hasProductClass()) {
99 99
             // 規格ありの商品は編集画面を表示する.
100 100
             $ProductClasses = $Product->getProductClasses()
101
-                ->filter(function ($pc) {
101
+                ->filter(function($pc) {
102 102
                     return $pc->getClassCategory1() !== null;
103 103
                 });
104 104
 
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
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $env = file_get_contents($envFile);
56 56
 
57 57
             $adminAllowHosts = \json_encode(
58
-                array_filter(\explode("\n", StringUtil::convertLineFeed($data['admin_allow_hosts'])), function ($str) {
58
+                array_filter(\explode("\n", StringUtil::convertLineFeed($data['admin_allow_hosts'])), function($str) {
59 59
                     return StringUtil::isNotBlank($str);
60 60
                 })
61 61
             );
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Customer/CustomerController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         $em->getConfiguration()->setSQLLogger(null);
289 289
 
290 290
         $response = new StreamedResponse();
291
-        $response->setCallback(function () use ($request) {
291
+        $response->setCallback(function() use ($request) {
292 292
             // CSV種別を元に初期化.
293 293
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_CUSTOMER);
294 294
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
             // データ行の出力.
303 303
             $this->csvExportService->setExportQueryBuilder($qb);
304
-            $this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
304
+            $this->csvExportService->exportData(function($entity, $csvService) use ($request) {
305 305
                 $Csvs = $csvService->getCsvs();
306 306
 
307 307
                 /** @var $Customer \Eccube\Entity\Customer */
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
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
         $quantity = 0;
79 79
         $isDeliveryFree = false;
80 80
 
81
-        $totalQuantity = array_reduce($Carts, function ($total, $Cart) {
81
+        $totalQuantity = array_reduce($Carts, function($total, $Cart) {
82 82
             /* @var Cart $Cart */
83 83
             $total += $Cart->getQuantity();
84 84
 
85 85
             return $total;
86 86
         }, 0);
87
-        $totalPrice = array_reduce($Carts, function ($total, $Cart) {
87
+        $totalPrice = array_reduce($Carts, function($total, $Cart) {
88 88
             /* @var Cart $Cart */
89 89
             $total += $Cart->getTotalPrice();
90 90
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     protected function execPurchaseFlow($Carts)
110 110
     {
111 111
         /** @var PurchaseFlowResult[] $flowResults */
112
-        $flowResults = array_map(function ($Cart) {
112
+        $flowResults = array_map(function($Cart) {
113 113
             $purchaseContext = new PurchaseContext($Cart, $this->getUser());
114 114
 
115 115
             return $this->purchaseFlow->calculate($Cart, $purchaseContext);
Please login to merge, or discard this patch.
src/Eccube/EventListener/TwigInitializeListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         if ($Member instanceof Member) {
158 158
             $AuthorityRoles = $this->authorityRoleRepository->findBy(['Authority' => $this->requestContext->getCurrentUser()->getAuthority()]);
159 159
         }
160
-        $roles = array_map(function (AuthorityRole $AuthorityRole) use ($event) {
160
+        $roles = array_map(function(AuthorityRole $AuthorityRole) use ($event) {
161 161
             return $event->getRequest()->getBaseUrl().'/'.$this->eccubeConfig['eccube_admin_route'].$AuthorityRole->getDenyUrl();
162 162
         }, $AuthorityRoles);
163 163
         $this->twig->addGlobal('AuthorityRoles', $roles);
Please login to merge, or discard this patch.
src/Eccube/Twig/Extension/EccubeBlockExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function getFunctions()
33 33
     {
34 34
         return [
35
-            new TwigFunction('eccube_block_*', function () {
35
+            new TwigFunction('eccube_block_*', function() {
36 36
                 $sources = $this->blockTemplates;
37 37
                 $arg_list = func_get_args();
38 38
                 $block_name = array_shift($arg_list);
Please login to merge, or discard this patch.