@@ -275,7 +275,7 @@ discard block |
||
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 |
||
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 */ |
@@ -180,10 +180,10 @@ discard block |
||
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 |
||
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) { |
@@ -632,7 +632,7 @@ discard block |
||
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 |
||
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 |
||
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 */ |
@@ -98,7 +98,7 @@ |
||
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 |
@@ -55,7 +55,7 @@ |
||
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 | ); |
@@ -288,7 +288,7 @@ discard block |
||
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 |
||
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 */ |
@@ -78,13 +78,13 @@ discard block |
||
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 |
||
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); |
@@ -157,7 +157,7 @@ |
||
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); |
@@ -32,7 +32,7 @@ |
||
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); |