@@ -48,7 +48,6 @@ |
||
48 | 48 | /** |
49 | 49 | * SearchProductType constructor. |
50 | 50 | * |
51 | - * @param Application $app |
|
52 | 51 | */ |
53 | 52 | public function __construct() |
54 | 53 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | ); |
24 | 24 | } |
25 | 25 | |
26 | - $app[TwigLintValidator::class] = function (Container $app) { |
|
26 | + $app[TwigLintValidator::class] = function(Container $app) { |
|
27 | 27 | return new TwigLintValidator($app['twig']); |
28 | 28 | }; |
29 | 29 |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($Product) { |
|
127 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($Product) { |
|
128 | 128 | $data = $event->getData(); |
129 | 129 | $form = $event->getForm(); |
130 | 130 | if (isset($data['classcategory_id1']) && !is_null($Product->getClassName2())) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | }); |
139 | 139 | |
140 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
140 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
141 | 141 | /** @var CartItem $CartItem */ |
142 | 142 | $CartItem = $event->getData(); |
143 | 143 | $ProductClass = $CartItem->getProductClass(); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php return [ |
2 | - 'http_cache' => |
|
3 | - [ |
|
2 | + 'http_cache' => |
|
3 | + [ |
|
4 | 4 | 'enabled' => false, |
5 | 5 | 'age' => 10, |
6 | 6 | // フロントでキャッシュを適用させる画面のrouteを設定 |
@@ -17,5 +17,5 @@ discard block |
||
17 | 17 | // 'help_tradelaw', |
18 | 18 | // 'help_agreement', |
19 | 19 | ], |
20 | - ], |
|
20 | + ], |
|
21 | 21 | ]; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | 7 | use Eccube\Annotation\Inject; |
8 | 8 | use Eccube\Annotation\Service; |
9 | -use Eccube\Common\Constant; |
|
10 | 9 | use Eccube\Entity\CartItem; |
11 | 10 | use Eccube\Entity\Customer; |
12 | 11 | use Eccube\Entity\CustomerAddress; |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | log_info('受注削除開始', array($Order->getId())); |
304 | 304 | |
305 | 305 | // 出荷に紐付いている明細がある場合は削除できない. |
306 | - $hasShipping = $Order->getItems()->exists(function ($k, $v) { |
|
306 | + $hasShipping = $Order->getItems()->exists(function($k, $v) { |
|
307 | 307 | return false === is_null($v->getShipping()); |
308 | 308 | }); |
309 | 309 | if ($hasShipping) { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | $em->getConfiguration()->setSQLLogger(null); |
362 | 362 | |
363 | 363 | $response = new StreamedResponse(); |
364 | - $response->setCallback(function () use ($app, $request) { |
|
364 | + $response->setCallback(function() use ($app, $request) { |
|
365 | 365 | |
366 | 366 | // CSV種別を元に初期化. |
367 | 367 | $this->csvExportService->initCsvType(CsvType::CSV_TYPE_ORDER); |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | |
376 | 376 | // データ行の出力. |
377 | 377 | $this->csvExportService->setExportQueryBuilder($qb); |
378 | - $this->csvExportService->exportData(function ($entity, $csvService) use ($app, $request) { |
|
378 | + $this->csvExportService->exportData(function($entity, $csvService) use ($app, $request) { |
|
379 | 379 | |
380 | 380 | $Csvs = $csvService->getCsvs(); |
381 | 381 | |
@@ -416,9 +416,9 @@ discard block |
||
416 | 416 | }); |
417 | 417 | |
418 | 418 | $now = new \DateTime(); |
419 | - $filename = 'order_' . $now->format('YmdHis') . '.csv'; |
|
419 | + $filename = 'order_'.$now->format('YmdHis').'.csv'; |
|
420 | 420 | $response->headers->set('Content-Type', 'application/octet-stream'); |
421 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
421 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
422 | 422 | $response->send(); |
423 | 423 | |
424 | 424 | log_info('受注CSV出力ファイル名', array($filename)); |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | $em->getConfiguration()->setSQLLogger(null); |
446 | 446 | |
447 | 447 | $response = new StreamedResponse(); |
448 | - $response->setCallback(function () use ($app, $request) { |
|
448 | + $response->setCallback(function() use ($app, $request) { |
|
449 | 449 | |
450 | 450 | // CSV種別を元に初期化. |
451 | 451 | $this->csvExportService->initCsvType(CsvType::CSV_TYPE_SHIPPING); |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | |
460 | 460 | // データ行の出力. |
461 | 461 | $this->csvExportService->setExportQueryBuilder($qb); |
462 | - $this->csvExportService->exportData(function ($entity, $csvService) use ($app, $request) { |
|
462 | + $this->csvExportService->exportData(function($entity, $csvService) use ($app, $request) { |
|
463 | 463 | |
464 | 464 | $Csvs = $csvService->getCsvs(); |
465 | 465 | |
@@ -509,9 +509,9 @@ discard block |
||
509 | 509 | }); |
510 | 510 | |
511 | 511 | $now = new \DateTime(); |
512 | - $filename = 'shipping_' . $now->format('YmdHis') . '.csv'; |
|
512 | + $filename = 'shipping_'.$now->format('YmdHis').'.csv'; |
|
513 | 513 | $response->headers->set('Content-Type', 'application/octet-stream'); |
514 | - $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename); |
|
514 | + $response->headers->set('Content-Disposition', 'attachment; filename='.$filename); |
|
515 | 515 | $response->send(); |
516 | 516 | |
517 | 517 | log_info('配送CSV出力ファイル名', array($filename)); |
@@ -392,7 +392,7 @@ |
||
392 | 392 | /** |
393 | 393 | * 会員の初回購入時間、購入時間、購入回数、購入金額を更新する |
394 | 394 | * |
395 | - * @param $app |
|
395 | + * @param \Eccube\Application $app |
|
396 | 396 | * @param Customer $Customer |
397 | 397 | * @param $orderStatusId |
398 | 398 | */ |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | protected $appConfig; |
62 | 62 | |
63 | - /** |
|
63 | + /** |
|
64 | 64 | * get query builder. |
65 | 65 | * |
66 | 66 | * @param array $searchData |
@@ -25,12 +25,10 @@ |
||
25 | 25 | namespace Eccube\Repository; |
26 | 26 | |
27 | 27 | use Doctrine\ORM\EntityManager; |
28 | -use Doctrine\ORM\NoResultException; |
|
29 | 28 | use Eccube\Annotation\Inject; |
30 | 29 | use Eccube\Annotation\Repository; |
31 | 30 | use Eccube\Doctrine\Query\Queries; |
32 | 31 | use Eccube\Util\StringUtil; |
33 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
|
34 | 32 | |
35 | 33 | /** |
36 | 34 | * ProductRepository |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | NORMALIZE(p.search_word) LIKE NORMALIZE(:%s) OR |
97 | 97 | EXISTS (SELECT wpc%d FROM \Eccube\Entity\ProductClass wpc%d WHERE p = wpc%d.Product AND NORMALIZE(wpc%d.code) LIKE NORMALIZE(:%s))', |
98 | 98 | $key, $key, $index, $index, $index, $index, $key)) |
99 | - ->setParameter($key, '%' . $keyword . '%'); |
|
99 | + ->setParameter($key, '%'.$keyword.'%'); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $qb |
160 | 160 | ->andWhere('p.id = :id OR p.name LIKE :likeid OR pc.code LIKE :likeid') |
161 | 161 | ->setParameter('id', $id) |
162 | - ->setParameter('likeid', '%' . $searchData['id'] . '%'); |
|
162 | + ->setParameter('likeid', '%'.$searchData['id'].'%'); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | // code |
@@ -114,7 +114,7 @@ |
||
114 | 114 | */ |
115 | 115 | public function delete($News) |
116 | 116 | { |
117 | - $this->createQueryBuilder('n') |
|
117 | + $this->createQueryBuilder('n') |
|
118 | 118 | ->update() |
119 | 119 | ->set('n.rank', 'n.rank - 1') |
120 | 120 | ->where('n.rank > :rank') |