@@ -46,7 +46,7 @@ |
||
| 46 | 46 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
| 47 | 47 | { |
| 48 | 48 | if ($targetEntity->hasField('del_flg') && !in_array($targetEntity->getName(), $this->getExcludes())) { |
| 49 | - return $targetTableAlias . '.del_flg = 0'; |
|
| 49 | + return $targetTableAlias.'.del_flg = 0'; |
|
| 50 | 50 | } else { |
| 51 | 51 | return ""; |
| 52 | 52 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | 'required' => false, |
| 149 | 149 | 'value' => 1, |
| 150 | 150 | )) |
| 151 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
| 151 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
| 152 | 152 | $form = $event->getForm(); |
| 153 | 153 | $data = $form->getData(); |
| 154 | 154 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | protected $config; |
| 35 | 35 | |
| 36 | - public function __construct ($config) |
|
| 36 | + public function __construct($config) |
|
| 37 | 37 | { |
| 38 | 38 | $this->config = $config; |
| 39 | 39 | } |
@@ -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 | } |
@@ -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 */ |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | $this->app['config']['block_default_realdir'], |
| 188 | 188 | ); |
| 189 | 189 | foreach ($readPaths as $readPath) { |
| 190 | - $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 190 | + $filePath = $readPath.'/'.$fileName.'.twig'; |
|
| 191 | 191 | $fs = new Filesystem(); |
| 192 | 192 | if ($fs->exists($filePath)) { |
| 193 | 193 | return array( |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * @deprecated 呼び出し元で制御する |
| 41 | 41 | * @param $block_id |
| 42 | 42 | * @param $DeviceType |
| 43 | - * @return array|\Eccube\Entity\Block |
|
| 43 | + * @return Block|null |
|
| 44 | 44 | */ |
| 45 | 45 | public function findOrCreate($block_id, $DeviceType) |
| 46 | 46 | { |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | $multi = preg_match('/^\d+$/', $searchData['multi']) ? $searchData['multi'] : null; |
| 275 | 275 | $qb |
| 276 | 276 | ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR ' . |
| 277 | - 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti') |
|
| 277 | + 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti') |
|
| 278 | 278 | ->setParameter('multi', $multi) |
| 279 | 279 | ->setParameter('likemulti', '%' . $searchData['multi'] . '%'); |
| 280 | 280 | } |
@@ -100,14 +100,14 @@ discard block |
||
| 100 | 100 | if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) { |
| 101 | 101 | $qb |
| 102 | 102 | ->andWhere('CONCAT(o.name01, o.name02) LIKE :name') |
| 103 | - ->setParameter('name', '%' . $searchData['name'] . '%'); |
|
| 103 | + ->setParameter('name', '%'.$searchData['name'].'%'); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // kana |
| 107 | 107 | if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) { |
| 108 | 108 | $qb |
| 109 | 109 | ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana') |
| 110 | - ->setParameter('kana', '%' . $searchData['kana'] . '%'); |
|
| 110 | + ->setParameter('kana', '%'.$searchData['kana'].'%'); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $qb |
| 245 | 245 | ->leftJoin('o.OrderDetails', 'od') |
| 246 | 246 | ->andWhere('od.product_name LIKE :buy_product_name') |
| 247 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%'); |
|
| 247 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%'); |
|
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | // Order By |
@@ -270,13 +270,13 @@ discard block |
||
| 270 | 270 | ->setParameter('order_id_start', $searchData['order_id_start']); |
| 271 | 271 | } |
| 272 | 272 | // multi |
| 273 | - if (isset( $searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
| 273 | + if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
| 274 | 274 | $multi = preg_match('/^\d+$/', $searchData['multi']) ? $searchData['multi'] : null; |
| 275 | 275 | $qb |
| 276 | - ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR ' . |
|
| 276 | + ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR '. |
|
| 277 | 277 | 'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti') |
| 278 | 278 | ->setParameter('multi', $multi) |
| 279 | - ->setParameter('likemulti', '%' . $searchData['multi'] . '%'); |
|
| 279 | + ->setParameter('likemulti', '%'.$searchData['multi'].'%'); |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | // order_id_end |
@@ -313,28 +313,28 @@ discard block |
||
| 313 | 313 | if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) { |
| 314 | 314 | $qb |
| 315 | 315 | ->andWhere('CONCAT(o.name01, o.name02) LIKE :name') |
| 316 | - ->setParameter('name', '%' . $searchData['name'] . '%'); |
|
| 316 | + ->setParameter('name', '%'.$searchData['name'].'%'); |
|
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | // kana |
| 320 | 320 | if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) { |
| 321 | 321 | $qb |
| 322 | 322 | ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana') |
| 323 | - ->setParameter('kana', '%' . $searchData['kana'] . '%'); |
|
| 323 | + ->setParameter('kana', '%'.$searchData['kana'].'%'); |
|
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | |
| 327 | 327 | if (isset($searchData['email']) && Str::isNotBlank($searchData['email'])) { |
| 328 | 328 | $qb |
| 329 | 329 | ->andWhere('o.email like :email') |
| 330 | - ->setParameter('email', '%' . $searchData['email'] . '%'); |
|
| 330 | + ->setParameter('email', '%'.$searchData['email'].'%'); |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | // tel |
| 334 | 334 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
| 335 | 335 | $qb |
| 336 | 336 | ->andWhere('CONCAT(o.tel01, o.tel02, o.tel03) LIKE :tel') |
| 337 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
| 337 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | // sex |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | $qb |
| 447 | 447 | ->leftJoin('o.OrderDetails', 'od') |
| 448 | 448 | ->andWhere('od.product_name LIKE :buy_product_name') |
| 449 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%'); |
|
| 449 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%'); |
|
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | // Order By |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | foreach ($readPaths as $readPath) { |
| 260 | - $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 260 | + $filePath = $readPath.'/'.$fileName.'.twig'; |
|
| 261 | 261 | $fs = new Filesystem(); |
| 262 | 262 | if ($fs->exists($filePath)) { |
| 263 | 263 | return array( |