@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function register(Container $app) |
| 14 | 14 | { |
| 15 | - $app['plugin.query_customize.customer_search'] = function (Container $container) { |
|
| 15 | + $app['plugin.query_customize.customer_search'] = function(Container $container) { |
|
| 16 | 16 | return new AdminCustomerCustomizer(); |
| 17 | 17 | }; |
| 18 | 18 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | if (strtoupper($orderby) === "PATH") { |
| 95 | 95 | uasort( |
| 96 | 96 | $routes, |
| 97 | - function ($a, $b) { |
|
| 97 | + function($a, $b) { |
|
| 98 | 98 | return strcmp($a->getPath(), $b->getPath()); |
| 99 | 99 | } |
| 100 | 100 | ); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $app = $this->app; |
| 146 | 146 | // XXX price を priceIncTax にセットし直す |
| 147 | 147 | // ShipmentItem::getTotalPrice でもやっているので、どこか一箇所にまとめたい |
| 148 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($app) { |
|
| 148 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($app) { |
|
| 149 | 149 | /** @var \Eccube\Entity\ShipmentItem $ShipmentItem */ |
| 150 | 150 | $ShipmentItem = $event->getData(); |
| 151 | 151 | $TaxDisplayType = $ShipmentItem->getTaxDisplayType(); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | $event->setData($ShipmentItem); |
| 165 | 165 | }); |
| 166 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) { |
|
| 166 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) { |
|
| 167 | 167 | // モーダルからのPOST時に、金額等をセットする. |
| 168 | 168 | if ('modal' === $app['request_stack']->getCurrentRequest()->get('modal')) { |
| 169 | 169 | $data = $event->getData(); |
@@ -233,17 +233,13 @@ discard block |
||
| 233 | 233 | $data['product_name'] = $Product->getName(); |
| 234 | 234 | $data['product_code'] = $ProductClass->getCode(); |
| 235 | 235 | $data['class_name1'] = $ProductClass->hasClassCategory1() ? |
| 236 | - $ProductClass->getClassCategory1()->getClassName() : |
|
| 237 | - null; |
|
| 236 | + $ProductClass->getClassCategory1()->getClassName() : null; |
|
| 238 | 237 | $data['class_name2'] = $ProductClass->hasClassCategory2() ? |
| 239 | - $ProductClass->getClassCategory2()->getClassName() : |
|
| 240 | - null; |
|
| 238 | + $ProductClass->getClassCategory2()->getClassName() : null; |
|
| 241 | 239 | $data['class_category_name1'] = $ProductClass->hasClassCategory1() ? |
| 242 | - $ProductClass->getClassCategory1()->getName() : |
|
| 243 | - null; |
|
| 240 | + $ProductClass->getClassCategory1()->getName() : null; |
|
| 244 | 241 | $data['class_category_name2'] = $ProductClass->hasClassCategory2() ? |
| 245 | - $ProductClass->getClassCategory2()->getName() : |
|
| 246 | - null; |
|
| 242 | + $ProductClass->getClassCategory2()->getName() : null; |
|
| 247 | 243 | $data['price'] = $ProductClass->getPrice02(); |
| 248 | 244 | $data['quantity'] = empty($data['quantity']) ? 1 : $data['quantity']; |
| 249 | 245 | $data['tax_type'] = TaxType::TAXATION; |
@@ -12,14 +12,14 @@ |
||
| 12 | 12 | public function register(Container $app) |
| 13 | 13 | { |
| 14 | 14 | // サンプルの空Strategyをコンテナに登録 |
| 15 | - $app['eccube.calculate.strategy.empty'] = function () { |
|
| 15 | + $app['eccube.calculate.strategy.empty'] = function() { |
|
| 16 | 16 | return new EmptyStrategy(); |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | // 空Strategyを追加. |
| 20 | 20 | $app['eccube.calculate.strategies'] = $app->extend( |
| 21 | 21 | 'eccube.calculate.strategies', |
| 22 | - function (CalculateStrategyCollection $Collection, Container $app) { |
|
| 22 | + function(CalculateStrategyCollection $Collection, Container $app) { |
|
| 23 | 23 | $Collection->add($app['eccube.calculate.strategy.empty']); |
| 24 | 24 | |
| 25 | 25 | return $Collection; |