@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ))); |
97 | 97 | |
98 | 98 | $app = $this->app; |
99 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) { |
|
99 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) { |
|
100 | 100 | // モーダルからのPOST時に、金額等をセットする. |
101 | 101 | if ('modal' === $app['request_stack']->getCurrentRequest()->get('modal')) { |
102 | 102 | $data = $event->getData(); |
@@ -111,17 +111,13 @@ discard block |
||
111 | 111 | $data['product_name'] = $Product->getName(); |
112 | 112 | $data['product_code'] = $ProductClass->getCode(); |
113 | 113 | $data['class_name1'] = $ProductClass->hasClassCategory1() ? |
114 | - $ProductClass->getClassCategory1()->getClassName() : |
|
115 | - null; |
|
114 | + $ProductClass->getClassCategory1()->getClassName() : null; |
|
116 | 115 | $data['class_name2'] = $ProductClass->hasClassCategory2() ? |
117 | - $ProductClass->getClassCategory2()->getClassName() : |
|
118 | - null; |
|
116 | + $ProductClass->getClassCategory2()->getClassName() : null; |
|
119 | 117 | $data['class_category_name1'] = $ProductClass->hasClassCategory1() ? |
120 | - $ProductClass->getClassCategory1()->getName() : |
|
121 | - null; |
|
118 | + $ProductClass->getClassCategory1()->getName() : null; |
|
122 | 119 | $data['class_category_name2'] = $ProductClass->hasClassCategory2() ? |
123 | - $ProductClass->getClassCategory2()->getName() : |
|
124 | - null; |
|
120 | + $ProductClass->getClassCategory2()->getName() : null; |
|
125 | 121 | $data['price'] = $ProductClass->getPrice02(); |
126 | 122 | $data['quantity'] = empty($data['quantity']) ? 1 : $data['quantity']; |
127 | 123 | $event->setData($data); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | new Assert\Regex(array('pattern' => '/^\d+$/')), |
67 | 67 | ), |
68 | 68 | )) |
69 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($app) { |
|
69 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($app) { |
|
70 | 70 | $form = $event->getForm(); |
71 | 71 | |
72 | 72 | if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $form->add('customer_address', EntityType::class, array( |
76 | 76 | 'class' => 'Eccube\Entity\CustomerAddress', |
77 | 77 | 'choice_label' => 'shippingMultipleDefaultName', |
78 | - 'query_builder' => function (EntityRepository $er) use ($Customer) { |
|
78 | + 'query_builder' => function(EntityRepository $er) use ($Customer) { |
|
79 | 79 | return $er->createQueryBuilder('ca') |
80 | 80 | ->where('ca.Customer = :Customer') |
81 | 81 | ->orderBy("ca.id", "ASC") |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | } |
108 | 108 | } |
109 | 109 | }) |
110 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
110 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
111 | 111 | /** @var \Eccube\Entity\Shipping $data */ |
112 | 112 | $data = $event->getData(); |
113 | 113 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | @trigger_error('The '.__METHOD__.' method is deprecated.', E_USER_DEPRECATED); |
46 | 46 | |
47 | 47 | $form = $app['form.factory'] |
48 | - ->createBuilder($app['eccube.form.type.' . $type], $app['eccube.entity.' . $type]) |
|
48 | + ->createBuilder($app['eccube.form.type.'.$type], $app['eccube.entity.'.$type]) |
|
49 | 49 | ->getForm(); |
50 | 50 | $form->handleRequest($app['request_stack']->getCurrentRequest()); |
51 | 51 |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | |
61 | 61 | public function __construct() |
62 | 62 | { |
63 | - $this->config_path = __DIR__ . '/../../../../app/config/eccube'; |
|
64 | - $this->dist_path = __DIR__ . '/../../Resource/config'; |
|
65 | - $this->cache_path = __DIR__ . '/../../../../app/cache'; |
|
63 | + $this->config_path = __DIR__.'/../../../../app/config/eccube'; |
|
64 | + $this->dist_path = __DIR__.'/../../Resource/config'; |
|
65 | + $this->cache_path = __DIR__.'/../../../../app/cache'; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | private function isValid(Request $request, Form $form) |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | return $app['twig']->render('step1.twig', array( |
114 | 114 | 'form' => $form->createView(), |
115 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
115 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
116 | 116 | )); |
117 | 117 | } |
118 | 118 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | return $app['twig']->render('step2.twig', array( |
137 | 137 | 'protectedDirs' => $protectedDirs, |
138 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
138 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
139 | 139 | )); |
140 | 140 | } |
141 | 141 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | if (empty($sessionData['shop_name'])) { |
151 | 151 | |
152 | - $config_file = $this->config_path . '/config.yml'; |
|
152 | + $config_file = $this->config_path.'/config.yml'; |
|
153 | 153 | $fs = new Filesystem(); |
154 | 154 | |
155 | 155 | if ($fs->exists($config_file)) { |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | // セキュリティの設定 |
166 | - $config_file = $this->config_path . '/path.yml'; |
|
166 | + $config_file = $this->config_path.'/path.yml'; |
|
167 | 167 | $config = Yaml::parse(file_get_contents($config_file)); |
168 | 168 | $sessionData['admin_dir'] = $config['admin_route']; |
169 | 169 | |
170 | - $config_file = $this->config_path . '/config.yml'; |
|
170 | + $config_file = $this->config_path.'/config.yml'; |
|
171 | 171 | $config = Yaml::parse(file_get_contents($config_file)); |
172 | 172 | |
173 | 173 | $allowHost = $config['admin_allow_host']; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $sessionData['admin_force_ssl'] = (bool) $config['force_ssl']; |
178 | 178 | |
179 | 179 | // メール設定 |
180 | - $config_file = $this->config_path . '/mail.yml'; |
|
180 | + $config_file = $this->config_path.'/mail.yml'; |
|
181 | 181 | $config = Yaml::parse(file_get_contents($config_file)); |
182 | 182 | $mail = $config['mail']; |
183 | 183 | $sessionData['mail_backend'] = $mail['transport']; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | return $app['twig']->render('step3.twig', array( |
202 | 202 | 'form' => $form->createView(), |
203 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
203 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
204 | 204 | )); |
205 | 205 | } |
206 | 206 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | if (empty($sessionData['database'])) { |
217 | 217 | |
218 | - $config_file = $this->config_path . '/database.yml'; |
|
218 | + $config_file = $this->config_path.'/database.yml'; |
|
219 | 219 | $fs = new Filesystem(); |
220 | 220 | |
221 | 221 | if ($fs->exists($config_file)) { |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | return $app['twig']->render('step4.twig', array( |
245 | 245 | 'form' => $form->createView(), |
246 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
246 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
247 | 247 | )); |
248 | 248 | } |
249 | 249 | |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | $host = $request->getSchemeAndHttpHost(); |
290 | 290 | $basePath = $request->getBasePath(); |
291 | 291 | $params = array( |
292 | - 'http_url' => $host . $basePath, |
|
292 | + 'http_url' => $host.$basePath, |
|
293 | 293 | 'shop_name' => $sessionData['shop_name'], |
294 | 294 | ); |
295 | 295 | |
@@ -304,24 +304,24 @@ discard block |
||
304 | 304 | |
305 | 305 | return $app['twig']->render('step5.twig', array( |
306 | 306 | 'form' => $form->createView(), |
307 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
307 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
308 | 308 | )); |
309 | 309 | } |
310 | 310 | |
311 | 311 | // インストール完了 |
312 | 312 | public function complete(InstallApplication $app, Request $request) |
313 | 313 | { |
314 | - $config_file = $this->config_path . '/path.yml'; |
|
314 | + $config_file = $this->config_path.'/path.yml'; |
|
315 | 315 | $config = Yaml::parse(file_get_contents($config_file)); |
316 | 316 | |
317 | 317 | $host = $request->getSchemeAndHttpHost(); |
318 | 318 | $basePath = $request->getBasePath(); |
319 | 319 | |
320 | - $adminUrl = $host . $basePath . '/' . $config['admin_dir']; |
|
320 | + $adminUrl = $host.$basePath.'/'.$config['admin_dir']; |
|
321 | 321 | |
322 | 322 | return $app['twig']->render('complete.twig', array( |
323 | 323 | 'admin_url' => $adminUrl, |
324 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
324 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
325 | 325 | )); |
326 | 326 | } |
327 | 327 | |
@@ -337,12 +337,12 @@ discard block |
||
337 | 337 | { |
338 | 338 | foreach ($this->required_modules as $module) { |
339 | 339 | if (!extension_loaded($module)) { |
340 | - $app->addDanger('[必須] ' . $module . ' 拡張モジュールが有効になっていません。', 'install'); |
|
340 | + $app->addDanger('[必須] '.$module.' 拡張モジュールが有効になっていません。', 'install'); |
|
341 | 341 | } |
342 | 342 | } |
343 | 343 | |
344 | 344 | if (!extension_loaded('pdo_mysql') && !extension_loaded('pdo_pgsql')) { |
345 | - $app->addDanger('[必須] ' . 'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install'); |
|
345 | + $app->addDanger('[必須] '.'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install'); |
|
346 | 346 | } |
347 | 347 | |
348 | 348 | foreach ($this->recommended_module as $module) { |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | //http://php.net/manual/en/migration71.deprecated.php |
353 | 353 | continue; |
354 | 354 | } |
355 | - $app->addWarning('[推奨] ' . $module . ' 拡張モジュールが有効になっていません。', 'install'); |
|
355 | + $app->addWarning('[推奨] '.$module.' 拡張モジュールが有効になっていません。', 'install'); |
|
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | if (!function_exists('apache_get_modules')) { |
371 | 371 | $app->addWarning('mod_rewrite が有効になっているか不明です。', 'install'); |
372 | 372 | } elseif (!in_array('mod_rewrite', apache_get_modules())) { |
373 | - $app->addDanger('[必須] ' . 'mod_rewriteを有効にしてください。', 'install'); |
|
373 | + $app->addDanger('[必須] '.'mod_rewriteを有効にしてください。', 'install'); |
|
374 | 374 | } |
375 | 375 | } elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos('Microsoft-IIS', $_SERVER['SERVER_SOFTWARE']) !== false) { |
376 | 376 | // iis |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | |
382 | 382 | private function setPDO() |
383 | 383 | { |
384 | - $config_file = $this->config_path . '/database.yml'; |
|
384 | + $config_file = $this->config_path.'/database.yml'; |
|
385 | 385 | $config = Yaml::parse(file_get_contents($config_file)); |
386 | 386 | |
387 | 387 | try { |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | private function getEntityManager() |
417 | 417 | { |
418 | 418 | if (!isset($this->app['orm.em'])) { |
419 | - $config_file = $this->config_path . '/database.yml'; |
|
419 | + $config_file = $this->config_path.'/database.yml'; |
|
420 | 420 | $database = Yaml::parse(file_get_contents($config_file)); |
421 | 421 | |
422 | 422 | $this->app->register(new \Silex\Provider\DoctrineServiceProvider(), array( |
@@ -424,15 +424,15 @@ discard block |
||
424 | 424 | )); |
425 | 425 | |
426 | 426 | $this->app->register(new \Dflydev\Provider\DoctrineOrm\DoctrineOrmServiceProvider(), array( |
427 | - 'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine', |
|
427 | + 'orm.proxies_dir' => __DIR__.'/../../app/cache/doctrine', |
|
428 | 428 | 'orm.em.options' => array( |
429 | 429 | 'mappings' => array( |
430 | 430 | array( |
431 | 431 | 'type' => 'yml', |
432 | 432 | 'namespace' => 'Eccube\Entity', |
433 | 433 | 'path' => array( |
434 | - __DIR__ . '/../../Resource/doctrine', |
|
435 | - __DIR__ . '/../../Resource/doctrine/master', |
|
434 | + __DIR__.'/../../Resource/doctrine', |
|
435 | + __DIR__.'/../../Resource/doctrine/master', |
|
436 | 436 | ), |
437 | 437 | ), |
438 | 438 | array( // TODO 暫定 |
@@ -469,11 +469,11 @@ discard block |
||
469 | 469 | { |
470 | 470 | $this->resetNatTimer(); |
471 | 471 | |
472 | - $config_file = $this->config_path . '/database.yml'; |
|
472 | + $config_file = $this->config_path.'/database.yml'; |
|
473 | 473 | $database = Yaml::parse(file_get_contents($config_file)); |
474 | 474 | $config['database'] = $database['database']; |
475 | 475 | |
476 | - $config_file = $this->config_path . '/config.yml'; |
|
476 | + $config_file = $this->config_path.'/config.yml'; |
|
477 | 477 | $baseConfig = Yaml::parse(file_get_contents($config_file)); |
478 | 478 | $config['config'] = $baseConfig; |
479 | 479 | |
@@ -531,11 +531,11 @@ discard block |
||
531 | 531 | { |
532 | 532 | $this->resetNatTimer(); |
533 | 533 | |
534 | - $config_file = $this->config_path . '/database.yml'; |
|
534 | + $config_file = $this->config_path.'/database.yml'; |
|
535 | 535 | $database = Yaml::parse(file_get_contents($config_file)); |
536 | 536 | $config['database'] = $database['database']; |
537 | 537 | |
538 | - $config_file = $this->config_path . '/config.yml'; |
|
538 | + $config_file = $this->config_path.'/config.yml'; |
|
539 | 539 | $baseConfig = Yaml::parse(file_get_contents($config_file)); |
540 | 540 | $config['config'] = $baseConfig; |
541 | 541 | |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | $config = new Configuration($app['db']); |
599 | 599 | $config->setMigrationsNamespace('DoctrineMigrations'); |
600 | 600 | |
601 | - $migrationDir = __DIR__ . '/../../Resource/doctrine/migration'; |
|
601 | + $migrationDir = __DIR__.'/../../Resource/doctrine/migration'; |
|
602 | 602 | $config->setMigrationsDirectory($migrationDir); |
603 | 603 | $config->registerMigrationsFromDirectory($migrationDir); |
604 | 604 | |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | private function getProtectedDirs() |
631 | 631 | { |
632 | 632 | $protectedDirs = array(); |
633 | - $base = __DIR__ . '/../../../..'; |
|
633 | + $base = __DIR__.'/../../../..'; |
|
634 | 634 | $dirs = array( |
635 | 635 | '/html', |
636 | 636 | '/app', |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | ); |
644 | 644 | |
645 | 645 | foreach ($dirs as $dir) { |
646 | - if (!is_writable($base . $dir)) { |
|
646 | + if (!is_writable($base.$dir)) { |
|
647 | 647 | $protectedDirs[] = $dir; |
648 | 648 | } |
649 | 649 | } |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | private function createConfigYamlFile($data, $auth = true) |
655 | 655 | { |
656 | 656 | $fs = new Filesystem(); |
657 | - $config_file = $this->config_path . '/config.yml'; |
|
657 | + $config_file = $this->config_path.'/config.yml'; |
|
658 | 658 | |
659 | 659 | if ($fs->exists($config_file)) { |
660 | 660 | $config = Yaml::parse(file_get_contents($config_file)); |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | |
684 | 684 | $fs = new Filesystem(); |
685 | 685 | $content = str_replace( |
686 | - $target, $replace, file_get_contents($this->dist_path . '/config.yml.dist') |
|
686 | + $target, $replace, file_get_contents($this->dist_path.'/config.yml.dist') |
|
687 | 687 | ); |
688 | 688 | $fs->dumpFile($config_file, $content); |
689 | 689 | |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | |
698 | 698 | private function addInstallStatus() |
699 | 699 | { |
700 | - $config_file = $this->config_path . '/config.yml'; |
|
700 | + $config_file = $this->config_path.'/config.yml'; |
|
701 | 701 | $config = Yaml::parse(file_get_contents($config_file)); |
702 | 702 | $config['eccube_install'] = 1; |
703 | 703 | $yml = Yaml::dump($config); |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | private function createDatabaseYamlFile($data) |
710 | 710 | { |
711 | 711 | $fs = new Filesystem(); |
712 | - $config_file = $this->config_path . '/database.yml'; |
|
712 | + $config_file = $this->config_path.'/database.yml'; |
|
713 | 713 | if ($fs->exists($config_file)) { |
714 | 714 | $fs->remove($config_file); |
715 | 715 | } |
@@ -742,14 +742,14 @@ discard block |
||
742 | 742 | |
743 | 743 | $fs = new Filesystem(); |
744 | 744 | $content = str_replace( |
745 | - $target, $replace, file_get_contents($this->dist_path . '/database.yml.dist') |
|
745 | + $target, $replace, file_get_contents($this->dist_path.'/database.yml.dist') |
|
746 | 746 | ); |
747 | 747 | } else { |
748 | 748 | $content = Yaml::dump( |
749 | 749 | array( |
750 | 750 | 'database' => array( |
751 | 751 | 'driver' => 'pdo_sqlite', |
752 | - 'path' => realpath($this->config_path . '/eccube.db') |
|
752 | + 'path' => realpath($this->config_path.'/eccube.db') |
|
753 | 753 | ) |
754 | 754 | ) |
755 | 755 | ); |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | private function createMailYamlFile($data) |
763 | 763 | { |
764 | 764 | $fs = new Filesystem(); |
765 | - $config_file = $this->config_path . '/mail.yml'; |
|
765 | + $config_file = $this->config_path.'/mail.yml'; |
|
766 | 766 | if ($fs->exists($config_file)) { |
767 | 767 | $fs->remove($config_file); |
768 | 768 | } |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | |
778 | 778 | $fs = new Filesystem(); |
779 | 779 | $content = str_replace( |
780 | - $target, $replace, file_get_contents($this->dist_path . '/mail.yml.dist') |
|
780 | + $target, $replace, file_get_contents($this->dist_path.'/mail.yml.dist') |
|
781 | 781 | ); |
782 | 782 | $fs->dumpFile($config_file, $content); |
783 | 783 | |
@@ -787,7 +787,7 @@ discard block |
||
787 | 787 | private function createPathYamlFile($data, Request $request) |
788 | 788 | { |
789 | 789 | $fs = new Filesystem(); |
790 | - $config_file = $this->config_path . '/path.yml'; |
|
790 | + $config_file = $this->config_path.'/path.yml'; |
|
791 | 791 | if ($fs->exists($config_file)) { |
792 | 792 | $fs->remove($config_file); |
793 | 793 | } |
@@ -795,16 +795,16 @@ discard block |
||
795 | 795 | $ADMIN_ROUTE = $data['admin_dir']; |
796 | 796 | $TEMPLATE_CODE = 'default'; |
797 | 797 | $USER_DATA_ROUTE = 'user_data'; |
798 | - $ROOT_DIR = realpath(__DIR__ . '/../../../../'); |
|
798 | + $ROOT_DIR = realpath(__DIR__.'/../../../../'); |
|
799 | 799 | $ROOT_URLPATH = $request->getBasePath(); |
800 | - $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH . RELATIVE_PUBLIC_DIR_PATH; |
|
800 | + $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH.RELATIVE_PUBLIC_DIR_PATH; |
|
801 | 801 | |
802 | 802 | $target = array('${ADMIN_ROUTE}', '${TEMPLATE_CODE}', '${USER_DATA_ROUTE}', '${ROOT_DIR}', '${ROOT_URLPATH}', '${ROOT_PUBLIC_URLPATH}'); |
803 | 803 | $replace = array($ADMIN_ROUTE, $TEMPLATE_CODE, $USER_DATA_ROUTE, $ROOT_DIR, $ROOT_URLPATH, $ROOT_PUBLIC_URLPATH); |
804 | 804 | |
805 | 805 | $fs = new Filesystem(); |
806 | 806 | $content = str_replace( |
807 | - $target, $replace, file_get_contents($this->dist_path . '/path.yml.dist') |
|
807 | + $target, $replace, file_get_contents($this->dist_path.'/path.yml.dist') |
|
808 | 808 | ); |
809 | 809 | $fs->dumpFile($config_file, $content); |
810 | 810 | |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | |
814 | 814 | private function sendAppData($params) |
815 | 815 | { |
816 | - $config_file = $this->config_path . '/database.yml'; |
|
816 | + $config_file = $this->config_path.'/database.yml'; |
|
817 | 817 | $db_config = Yaml::parse(file_get_contents($config_file)); |
818 | 818 | |
819 | 819 | $this->setPDO(); |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | } |
826 | 826 | |
827 | 827 | if ($db_config['database']['driver'] === 'pdo_mysql') { |
828 | - $db_ver = 'MySQL:' . $version; |
|
828 | + $db_ver = 'MySQL:'.$version; |
|
829 | 829 | } else { |
830 | 830 | $db_ver = $version; |
831 | 831 | } |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | |
844 | 844 | $header = array( |
845 | 845 | 'Content-Type: application/x-www-form-urlencoded', |
846 | - 'Content-Length: ' . strlen($data), |
|
846 | + 'Content-Length: '.strlen($data), |
|
847 | 847 | ); |
848 | 848 | $context = stream_context_create( |
849 | 849 | array( |
@@ -870,7 +870,7 @@ discard block |
||
870 | 870 | public function migration(InstallApplication $app, Request $request) |
871 | 871 | { |
872 | 872 | return $app['twig']->render('migration.twig', array( |
873 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
873 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
874 | 874 | )); |
875 | 875 | } |
876 | 876 | |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | return $app['twig']->render('migration_plugin.twig', array( |
900 | 900 | 'Plugins' => $Plugins, |
901 | 901 | 'version' => Constant::VERSION, |
902 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
902 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
903 | 903 | )); |
904 | 904 | } |
905 | 905 | } |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | \Eccube\Util\Cache::clear($config_app, true); |
923 | 923 | |
924 | 924 | return $app['twig']->render('migration_end.twig', array( |
925 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
925 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
926 | 926 | )); |
927 | 927 | } |
928 | 928 | } |
@@ -38,14 +38,14 @@ |
||
38 | 38 | */ |
39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
40 | 40 | { |
41 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
41 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
42 | 42 | $options = $event->getForm()->getConfig()->getOptions(); |
43 | 43 | if (!$event->getData()) { |
44 | 44 | $data = current(array_keys($options['choice_loader']->loadChoiceList()->getValues())); |
45 | 45 | $event->setData($data); |
46 | 46 | } |
47 | 47 | }); |
48 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
48 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
49 | 49 | $options = $event->getForm()->getConfig()->getOptions(); |
50 | 50 | $values = $options['choice_loader']->loadChoiceList()->getValues(); |
51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -38,14 +38,14 @@ |
||
38 | 38 | */ |
39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
40 | 40 | { |
41 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
41 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
42 | 42 | $options = $event->getForm()->getConfig()->getOptions(); |
43 | 43 | if (!$event->getData()) { |
44 | 44 | $data = current(array_keys($options['choice_loader']->loadChoiceList()->getValues())); |
45 | 45 | $event->setData($data); |
46 | 46 | } |
47 | 47 | }); |
48 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
48 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
49 | 49 | $options = $event->getForm()->getConfig()->getOptions(); |
50 | 50 | $values = $options['choice_loader']->loadChoiceList()->getValues(); |
51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | 'expanded' => false, |
43 | 43 | 'required' => false, |
44 | 44 | 'placeholder' => false, |
45 | - 'query_builder' => function (EntityRepository $er) { |
|
45 | + 'query_builder' => function(EntityRepository $er) { |
|
46 | 46 | return $er->createQueryBuilder('m') |
47 | 47 | ->orderBy('m.rank', 'ASC'); |
48 | 48 | }, |
@@ -38,14 +38,14 @@ |
||
38 | 38 | */ |
39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
40 | 40 | { |
41 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
41 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
42 | 42 | $options = $event->getForm()->getConfig()->getOptions(); |
43 | 43 | if (!$event->getData()) { |
44 | 44 | $data = current(array_keys($options['choice_loader']->loadChoiceList()->getValues())); |
45 | 45 | $event->setData($data); |
46 | 46 | } |
47 | 47 | }); |
48 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
48 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
49 | 49 | $options = $event->getForm()->getConfig()->getOptions(); |
50 | 50 | $values = $options['choice_loader']->loadChoiceList()->getValues(); |
51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $Table = $schema->getTable('dtb_payment'); |
19 | 19 | if (!$Table->hasColumn('use_paypal')) { |
20 | - $Table->addColumn('use_paypal','smallint', [ |
|
20 | + $Table->addColumn('use_paypal', 'smallint', [ |
|
21 | 21 | 'notnull' => false, |
22 | 22 | 'default' => 0 |
23 | 23 | ]); |