@@ -62,10 +62,10 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | if (empty($options['lastname_name'])) { |
| 65 | - $options['lastname_name'] = $builder->getName() . '01'; |
|
| 65 | + $options['lastname_name'] = $builder->getName().'01'; |
|
| 66 | 66 | } |
| 67 | 67 | if (empty($options['firstname_name'])) { |
| 68 | - $options['firstname_name'] = $builder->getName() . '02'; |
|
| 68 | + $options['firstname_name'] = $builder->getName().'02'; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | $builder |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | new Assert\GreaterThanOrEqual(array('value' => 0)), |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | - $constraints = function (Options $options) use ($defaultValues) { |
|
| 50 | + $constraints = function(Options $options) use ($defaultValues) { |
|
| 51 | 51 | if (false !== $options['required']) { |
| 52 | 52 | return array_merge($defaultValues, array(new Assert\NotBlank())); |
| 53 | 53 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $builder->add('category_id', 'entity', array( |
| 43 | 43 | 'class' => 'Eccube\Entity\Category', |
| 44 | 44 | 'property' => 'NameWithLevel', |
| 45 | - 'query_builder' => function (EntityRepository $er) { |
|
| 45 | + 'query_builder' => function(EntityRepository $er) { |
|
| 46 | 46 | return $er |
| 47 | 47 | ->createQueryBuilder('c') |
| 48 | 48 | ->orderBy('c.rank', 'DESC'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $app = $this->app; |
| 49 | 49 | |
| 50 | 50 | $builder |
| 51 | - ->addEventListener(FormEvents::PRE_SET_DATA, function ($event) use ($app) { |
|
| 51 | + ->addEventListener(FormEvents::PRE_SET_DATA, function($event) use ($app) { |
|
| 52 | 52 | /** @var \Eccube\Entity\Shipping $data */ |
| 53 | 53 | $data = $event->getData(); |
| 54 | 54 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | 'empty_data' => null, |
| 96 | 96 | )); |
| 97 | 97 | }) |
| 98 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
| 98 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
| 99 | 99 | /** @var \Eccube\Entity\Shipping $data */ |
| 100 | 100 | $data = $event->getData(); |
| 101 | 101 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | }) |
| 114 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 114 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 115 | 115 | /** @var \Eccube\Entity\Shipping $data */ |
| 116 | 116 | $data = $event->getData(); |
| 117 | 117 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | new Assert\Regex(array('pattern' => '/^\d+$/')), |
| 64 | 64 | ), |
| 65 | 65 | )) |
| 66 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($app) { |
|
| 66 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($app) { |
|
| 67 | 67 | $form = $event->getForm(); |
| 68 | 68 | |
| 69 | 69 | if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $form->add('customer_address', 'entity', array( |
| 73 | 73 | 'class' => 'Eccube\Entity\CustomerAddress', |
| 74 | 74 | 'property' => 'shippingMultipleDefaultName', |
| 75 | - 'query_builder' => function (EntityRepository $er) use ($Customer) { |
|
| 75 | + 'query_builder' => function(EntityRepository $er) use ($Customer) { |
|
| 76 | 76 | return $er->createQueryBuilder('ca') |
| 77 | 77 | ->where('ca.Customer = :Customer') |
| 78 | 78 | ->orderBy("ca.id", "ASC") |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | }) |
| 107 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
| 107 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
| 108 | 108 | /** @var \Eccube\Entity\Shipping $data */ |
| 109 | 109 | $data = $event->getData(); |
| 110 | 110 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $app = $this->app; |
| 48 | 48 | |
| 49 | 49 | $builder |
| 50 | - ->addEventListener(FormEvents::POST_SET_DATA, function ($event) use ($app) { |
|
| 50 | + ->addEventListener(FormEvents::POST_SET_DATA, function($event) use ($app) { |
|
| 51 | 51 | /** @var \Eccube\Entity\ShipmentItem $data */ |
| 52 | 52 | $data = $event->getData(); |
| 53 | 53 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $builder->setAttribute('tel02_name', $options['tel02_name']); |
| 77 | 77 | $builder->setAttribute('tel03_name', $options['tel03_name']); |
| 78 | 78 | // todo 変 |
| 79 | - $builder->addEventListener(FormEvents::POST_BIND, function ($event) use ($builder) { |
|
| 79 | + $builder->addEventListener(FormEvents::POST_BIND, function($event) use ($builder) { |
|
| 80 | 80 | $form = $event->getForm(); |
| 81 | 81 | $count = 0; |
| 82 | 82 | if ($form[$builder->getName().'01']->getData() != '') { |
@@ -9,12 +9,12 @@ |
||
| 9 | 9 | |
| 10 | 10 | CONST MIGRATION_TABLE_PREFIX = 'migration_'; |
| 11 | 11 | |
| 12 | - public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null) |
|
| 12 | + public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null) |
|
| 13 | 13 | { |
| 14 | 14 | $config = new Configuration($app['db']); |
| 15 | 15 | $config->setMigrationsNamespace('DoctrineMigrations'); |
| 16 | 16 | $config->setMigrationsDirectory($migrationFilePath); |
| 17 | - $config->registerMigrationsFromDirectory($migrationFilePath ); |
|
| 17 | + $config->registerMigrationsFromDirectory($migrationFilePath); |
|
| 18 | 18 | $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode); |
| 19 | 19 | $migration = new Migration($config); |
| 20 | 20 | // null 又は 'last' を渡すと最新バージョンまでマイグレートする |
@@ -147,7 +147,7 @@ discard block |
||
| 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') |
@@ -155,9 +155,9 @@ discard block |
||
| 155 | 155 | } else { |
| 156 | 156 | $qb |
| 157 | 157 | ->andWhere('CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email') |
| 158 | - ->setParameter('name', '%' . $clean_key_multi . '%') |
|
| 159 | - ->setParameter('kana', '%' . $clean_key_multi . '%') |
|
| 160 | - ->setParameter('email', '%' . $clean_key_multi . '%'); |
|
| 158 | + ->setParameter('name', '%'.$clean_key_multi.'%') |
|
| 159 | + ->setParameter('kana', '%'.$clean_key_multi.'%') |
|
| 160 | + ->setParameter('email', '%'.$clean_key_multi.'%'); |
|
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
| 211 | 211 | $qb |
| 212 | 212 | ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel') |
| 213 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
| 213 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | // buy_total |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | ->leftJoin('c.Orders', 'o') |
| 305 | 305 | ->leftJoin('o.OrderDetails', 'od') |
| 306 | 306 | ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name') |
| 307 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%'); |
|
| 307 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%'); |
|
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | // Order By |