@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** @var ShipmentItem $ShipmentItem */ |
27 | - foreach($this->ShipmentItems as $ShipmentItem) { |
|
27 | + foreach ($this->ShipmentItems as $ShipmentItem) { |
|
28 | 28 | if (!$this->Order->getShipmentItems()->contains($ShipmentItem)) { |
29 | 29 | $ShipmentItem->setOrder($this->Order); |
30 | 30 | $this->Order->addShipmentItem($ShipmentItem); |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | |
62 | 62 | public function __construct() |
63 | 63 | { |
64 | - $this->config_path = __DIR__ . '/../../../../app/config/eccube'; |
|
65 | - $this->dist_path = __DIR__ . '/../../Resource/config'; |
|
66 | - $this->cache_path = __DIR__ . '/../../../../app/cache'; |
|
64 | + $this->config_path = __DIR__.'/../../../../app/config/eccube'; |
|
65 | + $this->dist_path = __DIR__.'/../../Resource/config'; |
|
66 | + $this->cache_path = __DIR__.'/../../../../app/cache'; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | private function isValid(Request $request, Form $form) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | return $app['twig']->render('step1.twig', array( |
115 | 115 | 'form' => $form->createView(), |
116 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
116 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
117 | 117 | )); |
118 | 118 | } |
119 | 119 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | return $app['twig']->render('step2.twig', array( |
138 | 138 | 'protectedDirs' => $protectedDirs, |
139 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
139 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
140 | 140 | )); |
141 | 141 | } |
142 | 142 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | if (empty($sessionData['shop_name'])) { |
152 | 152 | |
153 | - $config_file = $this->config_path . '/config.yml'; |
|
153 | + $config_file = $this->config_path.'/config.yml'; |
|
154 | 154 | $fs = new Filesystem(); |
155 | 155 | |
156 | 156 | if ($fs->exists($config_file)) { |
@@ -164,11 +164,11 @@ discard block |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | // セキュリティの設定 |
167 | - $config_file = $this->config_path . '/path.yml'; |
|
167 | + $config_file = $this->config_path.'/path.yml'; |
|
168 | 168 | $config = Yaml::parse(file_get_contents($config_file)); |
169 | 169 | $sessionData['admin_dir'] = $config['admin_route']; |
170 | 170 | |
171 | - $config_file = $this->config_path . '/config.yml'; |
|
171 | + $config_file = $this->config_path.'/config.yml'; |
|
172 | 172 | $config = Yaml::parse(file_get_contents($config_file)); |
173 | 173 | |
174 | 174 | $allowHost = $config['admin_allow_host']; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | // ロードバランサー、プロキシサーバ設定 |
181 | 181 | if (isset($config['trusted_proxies_connection_only'])) { |
182 | - $sessionData['trusted_proxies_connection_only'] = (bool)$config['trusted_proxies_connection_only']; |
|
182 | + $sessionData['trusted_proxies_connection_only'] = (bool) $config['trusted_proxies_connection_only']; |
|
183 | 183 | } |
184 | 184 | if (isset($config['trusted_proxies'])) { |
185 | 185 | $trustedProxies = $config['trusted_proxies']; |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | } |
189 | 189 | } |
190 | 190 | // メール設定 |
191 | - $config_file = $this->config_path . '/mail.yml'; |
|
191 | + $config_file = $this->config_path.'/mail.yml'; |
|
192 | 192 | $config = Yaml::parse(file_get_contents($config_file)); |
193 | 193 | $mail = $config['mail']; |
194 | 194 | $sessionData['mail_backend'] = $mail['transport']; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | |
212 | 212 | return $app['twig']->render('step3.twig', array( |
213 | 213 | 'form' => $form->createView(), |
214 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
214 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
215 | 215 | )); |
216 | 216 | } |
217 | 217 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | if (empty($sessionData['database'])) { |
228 | 228 | |
229 | - $config_file = $this->config_path . '/database.yml'; |
|
229 | + $config_file = $this->config_path.'/database.yml'; |
|
230 | 230 | $fs = new Filesystem(); |
231 | 231 | |
232 | 232 | if ($fs->exists($config_file)) { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | |
255 | 255 | return $app['twig']->render('step4.twig', array( |
256 | 256 | 'form' => $form->createView(), |
257 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
257 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
258 | 258 | )); |
259 | 259 | } |
260 | 260 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $host = $request->getSchemeAndHttpHost(); |
302 | 302 | $basePath = $request->getBasePath(); |
303 | 303 | $params = array( |
304 | - 'http_url' => $host . $basePath, |
|
304 | + 'http_url' => $host.$basePath, |
|
305 | 305 | 'shop_name' => $sessionData['shop_name'], |
306 | 306 | ); |
307 | 307 | |
@@ -316,16 +316,16 @@ discard block |
||
316 | 316 | |
317 | 317 | return $app['twig']->render('step5.twig', array( |
318 | 318 | 'form' => $form->createView(), |
319 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
319 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
320 | 320 | )); |
321 | 321 | } |
322 | 322 | |
323 | 323 | // インストール完了 |
324 | 324 | public function complete(InstallApplication $app, Request $request) |
325 | 325 | { |
326 | - $config_yml = $this->config_path . '/config.yml'; |
|
326 | + $config_yml = $this->config_path.'/config.yml'; |
|
327 | 327 | $config = Yaml::parse(file_get_contents($config_yml)); |
328 | - $config_path = $this->config_path . '/path.yml'; |
|
328 | + $config_path = $this->config_path.'/path.yml'; |
|
329 | 329 | $path_yml = Yaml::parse(file_get_contents($config_path)); |
330 | 330 | |
331 | 331 | $config = array_replace_recursive($path_yml, $config); |
@@ -340,11 +340,11 @@ discard block |
||
340 | 340 | $host = $request->getSchemeAndHttpHost(); |
341 | 341 | $basePath = $request->getBasePath(); |
342 | 342 | |
343 | - $adminUrl = $host . $basePath . '/' . $config['admin_dir']; |
|
343 | + $adminUrl = $host.$basePath.'/'.$config['admin_dir']; |
|
344 | 344 | |
345 | 345 | return $app['twig']->render('complete.twig', array( |
346 | 346 | 'admin_url' => $adminUrl, |
347 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
347 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
348 | 348 | )); |
349 | 349 | } |
350 | 350 | |
@@ -360,12 +360,12 @@ discard block |
||
360 | 360 | { |
361 | 361 | foreach ($this->required_modules as $module) { |
362 | 362 | if (!extension_loaded($module)) { |
363 | - $app->addDanger('[必須] ' . $module . ' 拡張モジュールが有効になっていません。', 'install'); |
|
363 | + $app->addDanger('[必須] '.$module.' 拡張モジュールが有効になっていません。', 'install'); |
|
364 | 364 | } |
365 | 365 | } |
366 | 366 | |
367 | 367 | if (!extension_loaded('pdo_mysql') && !extension_loaded('pdo_pgsql')) { |
368 | - $app->addDanger('[必須] ' . 'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install'); |
|
368 | + $app->addDanger('[必須] '.'pdo_pgsql又はpdo_mysql 拡張モジュールを有効にしてください。', 'install'); |
|
369 | 369 | } |
370 | 370 | |
371 | 371 | foreach ($this->recommended_module as $module) { |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | if (!function_exists('apache_get_modules')) { |
394 | 394 | $app->addWarning('mod_rewrite が有効になっているか不明です。', 'install'); |
395 | 395 | } elseif (!in_array('mod_rewrite', apache_get_modules())) { |
396 | - $app->addDanger('[必須] ' . 'mod_rewriteを有効にしてください。', 'install'); |
|
396 | + $app->addDanger('[必須] '.'mod_rewriteを有効にしてください。', 'install'); |
|
397 | 397 | } |
398 | 398 | } elseif (isset($_SERVER['SERVER_SOFTWARE']) && strpos('Microsoft-IIS', $_SERVER['SERVER_SOFTWARE']) !== false) { |
399 | 399 | // iis |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | |
405 | 405 | private function setPDO() |
406 | 406 | { |
407 | - $config_file = $this->config_path . '/database.yml'; |
|
407 | + $config_file = $this->config_path.'/database.yml'; |
|
408 | 408 | $config = Yaml::parse(file_get_contents($config_file)); |
409 | 409 | |
410 | 410 | try { |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | private function getEntityManager() |
440 | 440 | { |
441 | 441 | if (!isset($this->app['orm.em'])) { |
442 | - $config_file = $this->config_path . '/database.yml'; |
|
442 | + $config_file = $this->config_path.'/database.yml'; |
|
443 | 443 | $database = Yaml::parse(file_get_contents($config_file)); |
444 | 444 | |
445 | 445 | $this->app->register(new \Silex\Provider\DoctrineServiceProvider(), array( |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | 'type' => 'annotation', |
452 | 452 | 'namespace' => 'Eccube\Entity', |
453 | 453 | 'path' => array( |
454 | - __DIR__ . '/../../Entity', |
|
454 | + __DIR__.'/../../Entity', |
|
455 | 455 | ), |
456 | 456 | 'use_simple_annotation_reader' => false, |
457 | 457 | ), |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | } |
485 | 485 | } |
486 | 486 | $this->app->register(new \Dflydev\Provider\DoctrineOrm\DoctrineOrmServiceProvider(), array( |
487 | - 'orm.proxies_dir' => __DIR__ . '/../../app/cache/doctrine', |
|
487 | + 'orm.proxies_dir' => __DIR__.'/../../app/cache/doctrine', |
|
488 | 488 | 'orm.em.options' => array( |
489 | 489 | 'mappings' => $ormMappings |
490 | 490 | ) |
@@ -524,11 +524,11 @@ discard block |
||
524 | 524 | { |
525 | 525 | $this->resetNatTimer(); |
526 | 526 | |
527 | - $config_file = $this->config_path . '/database.yml'; |
|
527 | + $config_file = $this->config_path.'/database.yml'; |
|
528 | 528 | $database = Yaml::parse(file_get_contents($config_file)); |
529 | 529 | $config['database'] = $database['database']; |
530 | 530 | |
531 | - $config_file = $this->config_path . '/config.yml'; |
|
531 | + $config_file = $this->config_path.'/config.yml'; |
|
532 | 532 | $baseConfig = Yaml::parse(file_get_contents($config_file)); |
533 | 533 | $config['config'] = $baseConfig; |
534 | 534 | |
@@ -586,11 +586,11 @@ discard block |
||
586 | 586 | { |
587 | 587 | $this->resetNatTimer(); |
588 | 588 | |
589 | - $config_file = $this->config_path . '/database.yml'; |
|
589 | + $config_file = $this->config_path.'/database.yml'; |
|
590 | 590 | $database = Yaml::parse(file_get_contents($config_file)); |
591 | 591 | $config['database'] = $database['database']; |
592 | 592 | |
593 | - $config_file = $this->config_path . '/config.yml'; |
|
593 | + $config_file = $this->config_path.'/config.yml'; |
|
594 | 594 | $baseConfig = Yaml::parse(file_get_contents($config_file)); |
595 | 595 | $config['config'] = $baseConfig; |
596 | 596 | |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | $config = new Configuration($app['db']); |
654 | 654 | $config->setMigrationsNamespace('DoctrineMigrations'); |
655 | 655 | |
656 | - $migrationDir = __DIR__ . '/../../Resource/doctrine/migration'; |
|
656 | + $migrationDir = __DIR__.'/../../Resource/doctrine/migration'; |
|
657 | 657 | $config->setMigrationsDirectory($migrationDir); |
658 | 658 | $config->registerMigrationsFromDirectory($migrationDir); |
659 | 659 | |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | private function getProtectedDirs() |
687 | 687 | { |
688 | 688 | $protectedDirs = array(); |
689 | - $base = __DIR__ . '/../../../..'; |
|
689 | + $base = __DIR__.'/../../../..'; |
|
690 | 690 | $dirs = array( |
691 | 691 | '/html', |
692 | 692 | '/app', |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | ); |
700 | 700 | |
701 | 701 | foreach ($dirs as $dir) { |
702 | - if (!is_writable($base . $dir)) { |
|
702 | + if (!is_writable($base.$dir)) { |
|
703 | 703 | $protectedDirs[] = $dir; |
704 | 704 | } |
705 | 705 | } |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | private function createConfigYamlFile($data, $auth = true) |
711 | 711 | { |
712 | 712 | $fs = new Filesystem(); |
713 | - $config_file = $this->config_path . '/config.yml'; |
|
713 | + $config_file = $this->config_path.'/config.yml'; |
|
714 | 714 | |
715 | 715 | if ($fs->exists($config_file)) { |
716 | 716 | $config = Yaml::parse(file_get_contents($config_file)); |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | |
752 | 752 | $fs = new Filesystem(); |
753 | 753 | $content = str_replace( |
754 | - $target, $replace, file_get_contents($this->dist_path . '/config.yml.dist') |
|
754 | + $target, $replace, file_get_contents($this->dist_path.'/config.yml.dist') |
|
755 | 755 | ); |
756 | 756 | $fs->dumpFile($config_file, $content); |
757 | 757 | |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | |
768 | 768 | private function addInstallStatus() |
769 | 769 | { |
770 | - $config_file = $this->config_path . '/config.yml'; |
|
770 | + $config_file = $this->config_path.'/config.yml'; |
|
771 | 771 | $config = Yaml::parse(file_get_contents($config_file)); |
772 | 772 | $config['eccube_install'] = 1; |
773 | 773 | $yml = Yaml::dump($config); |
@@ -779,7 +779,7 @@ discard block |
||
779 | 779 | private function createDatabaseYamlFile($data) |
780 | 780 | { |
781 | 781 | $fs = new Filesystem(); |
782 | - $config_file = $this->config_path . '/database.yml'; |
|
782 | + $config_file = $this->config_path.'/database.yml'; |
|
783 | 783 | if ($fs->exists($config_file)) { |
784 | 784 | $fs->remove($config_file); |
785 | 785 | } |
@@ -812,14 +812,14 @@ discard block |
||
812 | 812 | |
813 | 813 | $fs = new Filesystem(); |
814 | 814 | $content = str_replace( |
815 | - $target, $replace, file_get_contents($this->dist_path . '/database.yml.dist') |
|
815 | + $target, $replace, file_get_contents($this->dist_path.'/database.yml.dist') |
|
816 | 816 | ); |
817 | 817 | } else { |
818 | 818 | $content = Yaml::dump( |
819 | 819 | array( |
820 | 820 | 'database' => array( |
821 | 821 | 'driver' => 'pdo_sqlite', |
822 | - 'path' => realpath($this->config_path . '/eccube.db') |
|
822 | + 'path' => realpath($this->config_path.'/eccube.db') |
|
823 | 823 | ) |
824 | 824 | ) |
825 | 825 | ); |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | private function createMailYamlFile($data) |
833 | 833 | { |
834 | 834 | $fs = new Filesystem(); |
835 | - $config_file = $this->config_path . '/mail.yml'; |
|
835 | + $config_file = $this->config_path.'/mail.yml'; |
|
836 | 836 | if ($fs->exists($config_file)) { |
837 | 837 | $fs->remove($config_file); |
838 | 838 | } |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | |
848 | 848 | $fs = new Filesystem(); |
849 | 849 | $content = str_replace( |
850 | - $target, $replace, file_get_contents($this->dist_path . '/mail.yml.dist') |
|
850 | + $target, $replace, file_get_contents($this->dist_path.'/mail.yml.dist') |
|
851 | 851 | ); |
852 | 852 | $fs->dumpFile($config_file, $content); |
853 | 853 | |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | private function createPathYamlFile($data, Request $request) |
858 | 858 | { |
859 | 859 | $fs = new Filesystem(); |
860 | - $config_file = $this->config_path . '/path.yml'; |
|
860 | + $config_file = $this->config_path.'/path.yml'; |
|
861 | 861 | if ($fs->exists($config_file)) { |
862 | 862 | $fs->remove($config_file); |
863 | 863 | } |
@@ -867,14 +867,14 @@ discard block |
||
867 | 867 | $USER_DATA_ROUTE = 'user_data'; |
868 | 868 | $ROOT_DIR = '%ROOT_DIR%'; |
869 | 869 | $ROOT_URLPATH = $request->getBasePath(); |
870 | - $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH . RELATIVE_PUBLIC_DIR_PATH; |
|
870 | + $ROOT_PUBLIC_URLPATH = $ROOT_URLPATH.RELATIVE_PUBLIC_DIR_PATH; |
|
871 | 871 | |
872 | 872 | $target = array('${ADMIN_ROUTE}', '${TEMPLATE_CODE}', '${USER_DATA_ROUTE}', '${ROOT_DIR}', '${ROOT_URLPATH}', '${ROOT_PUBLIC_URLPATH}'); |
873 | 873 | $replace = array($ADMIN_ROUTE, $TEMPLATE_CODE, $USER_DATA_ROUTE, $ROOT_DIR, $ROOT_URLPATH, $ROOT_PUBLIC_URLPATH); |
874 | 874 | |
875 | 875 | $fs = new Filesystem(); |
876 | 876 | $content = str_replace( |
877 | - $target, $replace, file_get_contents($this->dist_path . '/path.yml.dist') |
|
877 | + $target, $replace, file_get_contents($this->dist_path.'/path.yml.dist') |
|
878 | 878 | ); |
879 | 879 | $fs->dumpFile($config_file, $content); |
880 | 880 | |
@@ -883,7 +883,7 @@ discard block |
||
883 | 883 | |
884 | 884 | private function sendAppData($params) |
885 | 885 | { |
886 | - $config_file = $this->config_path . '/database.yml'; |
|
886 | + $config_file = $this->config_path.'/database.yml'; |
|
887 | 887 | $db_config = Yaml::parse(file_get_contents($config_file)); |
888 | 888 | |
889 | 889 | $this->setPDO(); |
@@ -895,7 +895,7 @@ discard block |
||
895 | 895 | } |
896 | 896 | |
897 | 897 | if ($db_config['database']['driver'] === 'pdo_mysql') { |
898 | - $db_ver = 'MySQL:' . $version; |
|
898 | + $db_ver = 'MySQL:'.$version; |
|
899 | 899 | } else { |
900 | 900 | $db_ver = $version; |
901 | 901 | } |
@@ -913,7 +913,7 @@ discard block |
||
913 | 913 | |
914 | 914 | $header = array( |
915 | 915 | 'Content-Type: application/x-www-form-urlencoded', |
916 | - 'Content-Length: ' . strlen($data), |
|
916 | + 'Content-Length: '.strlen($data), |
|
917 | 917 | ); |
918 | 918 | $context = stream_context_create( |
919 | 919 | array( |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | public function migration(InstallApplication $app, Request $request) |
941 | 941 | { |
942 | 942 | return $app['twig']->render('migration.twig', array( |
943 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
943 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
944 | 944 | )); |
945 | 945 | } |
946 | 946 | |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | return $app['twig']->render('migration_plugin.twig', array( |
970 | 970 | 'Plugins' => $Plugins, |
971 | 971 | 'version' => Constant::VERSION, |
972 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
972 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
973 | 973 | )); |
974 | 974 | } |
975 | 975 | } |
@@ -992,7 +992,7 @@ discard block |
||
992 | 992 | \Eccube\Util\Cache::clear($config_app, true); |
993 | 993 | |
994 | 994 | return $app['twig']->render('migration_end.twig', array( |
995 | - 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/', |
|
995 | + 'publicPath' => '..'.RELATIVE_PUBLIC_DIR_PATH.'/', |
|
996 | 996 | )); |
997 | 997 | } |
998 | 998 | } |
@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | ->setParameter('shipping_id_start', $searchData['shipping_id_start']); |
53 | 53 | } |
54 | 54 | // multi |
55 | - if (isset( $searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
55 | + if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) { |
|
56 | 56 | $multi = preg_match('/^\d+$/', $searchData['multi']) ? $searchData['multi'] : null; |
57 | 57 | $qb |
58 | - ->andWhere('s.id = :multi OR s.name01 LIKE :likemulti OR s.name02 LIKE :likemulti OR ' . |
|
58 | + ->andWhere('s.id = :multi OR s.name01 LIKE :likemulti OR s.name02 LIKE :likemulti OR '. |
|
59 | 59 | 's.kana01 LIKE :likemulti OR s.kana02 LIKE :likemulti OR s.company_name LIKE :likemulti') |
60 | 60 | ->setParameter('multi', $multi) |
61 | - ->setParameter('likemulti', '%' . $searchData['multi'] . '%'); |
|
61 | + ->setParameter('likemulti', '%'.$searchData['multi'].'%'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | // shipping_id_end |
@@ -91,42 +91,42 @@ discard block |
||
91 | 91 | if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) { |
92 | 92 | $qb |
93 | 93 | ->andWhere('CONCAT(s.name01, s.name02) LIKE :name') |
94 | - ->setParameter('name', '%' . $searchData['name'] . '%'); |
|
94 | + ->setParameter('name', '%'.$searchData['name'].'%'); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | // kana |
98 | 98 | if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) { |
99 | 99 | $qb |
100 | 100 | ->andWhere('CONCAT(s.kana01, s.kana02) LIKE :kana') |
101 | - ->setParameter('kana', '%' . $searchData['kana'] . '%'); |
|
101 | + ->setParameter('kana', '%'.$searchData['kana'].'%'); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | // order_name |
105 | 105 | if (isset($searchData['order_name']) && Str::isNotBlank($searchData['order_name'])) { |
106 | 106 | $qb |
107 | 107 | ->andWhere('CONCAT(o.name01, o.name02) LIKE :order_name') |
108 | - ->setParameter('order_name', '%' . $searchData['order_name'] . '%'); |
|
108 | + ->setParameter('order_name', '%'.$searchData['order_name'].'%'); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | // order_kana |
112 | 112 | if (isset($searchData['order_kana']) && Str::isNotBlank($searchData['order_kana'])) { |
113 | 113 | $qb |
114 | 114 | ->andWhere('CONCAT(o.kana01, s.kana02) LIKE :order_kana') |
115 | - ->setParameter('kana', '%' . $searchData['order_kana'] . '%'); |
|
115 | + ->setParameter('kana', '%'.$searchData['order_kana'].'%'); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | // order_email |
119 | 119 | if (isset($searchData['email']) && Str::isNotBlank($searchData['email'])) { |
120 | 120 | $qb |
121 | 121 | ->andWhere('o.email like :email') |
122 | - ->setParameter('email', '%' . $searchData['email'] . '%'); |
|
122 | + ->setParameter('email', '%'.$searchData['email'].'%'); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | // tel |
126 | 126 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
127 | 127 | $qb |
128 | 128 | ->andWhere('CONCAT(s.tel01, s.tel02, s.tel03) LIKE :tel') |
129 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
129 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | // payment |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | if (isset($searchData['buy_product_name']) && Str::isNotBlank($searchData['buy_product_name'])) { |
223 | 223 | $qb |
224 | 224 | ->andWhere('si.product_name LIKE :buy_product_name') |
225 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%'); |
|
225 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%'); |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | // Order By |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * 複数配送オプション有効時の画面制御を行う. |
258 | 258 | */ |
259 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($BaseInfo) { |
|
259 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($BaseInfo) { |
|
260 | 260 | |
261 | 261 | if ($BaseInfo->getOptionMultipleShipping() != Constant::ENABLED) { |
262 | 262 | return; |
@@ -266,17 +266,16 @@ discard block |
||
266 | 266 | $orderDetails = &$data['OrderDetails']; |
267 | 267 | |
268 | 268 | // 数量0フィルター |
269 | - $quantityFilter = function ($v) { |
|
269 | + $quantityFilter = function($v) { |
|
270 | 270 | return !(isset($v['quantity']) && preg_match('/^0+$/', trim($v['quantity']))); |
271 | 271 | }; |
272 | 272 | |
273 | 273 | // $shippings = &$data['Shippings']; |
274 | 274 | |
275 | 275 | // 数量を抽出 |
276 | - $getQuantity = function ($v) { |
|
276 | + $getQuantity = function($v) { |
|
277 | 277 | return (isset($v['quantity']) && preg_match('/^\d+$/', trim($v['quantity']))) ? |
278 | - trim($v['quantity']) : |
|
279 | - 0; |
|
278 | + trim($v['quantity']) : 0; |
|
280 | 279 | }; |
281 | 280 | |
282 | 281 | // foreach ($shippings as &$shipping) { |
@@ -293,7 +292,7 @@ discard block |
||
293 | 292 | $orderDetail['quantity'] = 0; |
294 | 293 | |
295 | 294 | // 受注詳細と同じ商品規格のみ抽出 |
296 | - $productClassFilter = function ($v) use ($orderDetail) { |
|
295 | + $productClassFilter = function($v) use ($orderDetail) { |
|
297 | 296 | return $orderDetail['ProductClass'] === $v['ProductClass']; |
298 | 297 | }; |
299 | 298 | |
@@ -302,10 +301,9 @@ discard block |
||
302 | 301 | if (!empty($shipping['ShipmentItems'])) { |
303 | 302 | |
304 | 303 | // 同じ商品規格の受注詳細の価格を適用 |
305 | - $applyPrice = function (&$v) use ($orderDetail) { |
|
304 | + $applyPrice = function(&$v) use ($orderDetail) { |
|
306 | 305 | $v['price'] = ($v['ProductClass'] === $orderDetail['ProductClass']) ? |
307 | - $orderDetail['price'] : |
|
308 | - $v['price']; |
|
306 | + $orderDetail['price'] : $v['price']; |
|
309 | 307 | }; |
310 | 308 | array_walk($shipping['ShipmentItems'], $applyPrice); |
311 | 309 | |
@@ -334,7 +332,7 @@ discard block |
||
334 | 332 | // } |
335 | 333 | // }); |
336 | 334 | // 選択された支払い方法の名称をエンティティにコピーする |
337 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
335 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
338 | 336 | $Order = $event->getData(); |
339 | 337 | $Payment = $Order->getPayment(); |
340 | 338 | if (!is_null($Payment)) { |
@@ -342,7 +340,7 @@ discard block |
||
342 | 340 | } |
343 | 341 | }); |
344 | 342 | // TODO 手数料, 値引きの集計は CalculateService で |
345 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
343 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
346 | 344 | $Order = $event->getData(); |
347 | 345 | $Order->setDiscount($Order->calculateDiscountTotal()); |
348 | 346 | $Order->setCharge($Order->calculateChargeTotal()); |
@@ -350,7 +348,7 @@ discard block |
||
350 | 348 | $event->setData($Order); |
351 | 349 | }); |
352 | 350 | // 会員受注の場合、会員の性別/職業/誕生日をエンティティにコピーする |
353 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
351 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
354 | 352 | $Order = $event->getData(); |
355 | 353 | $Customer = $Order->getCustomer(); |
356 | 354 | if (!is_null($Customer)) { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['plugin.entity_event.base_info_listener'] = function (Container $container) { |
|
15 | + $app['plugin.entity_event.base_info_listener'] = function(Container $container) { |
|
16 | 16 | return new BaseInfoListener(); |
17 | 17 | }; |
18 | 18 | } |
@@ -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 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->register(new \Saxulum\Validator\Provider\SaxulumValidatorProvider()); |
168 | 168 | $this->register(new MobileDetectServiceProvider()); |
169 | 169 | |
170 | - $this->error(function (\Exception $e, Request $request, $code) { |
|
170 | + $this->error(function(\Exception $e, Request $request, $code) { |
|
171 | 171 | if ($this['debug']) { |
172 | 172 | return; |
173 | 173 | } |
@@ -261,14 +261,14 @@ discard block |
||
261 | 261 | return $router; |
262 | 262 | }); |
263 | 263 | |
264 | - $this['eccube.router.origin'] = function ($app) { |
|
264 | + $this['eccube.router.origin'] = function($app) { |
|
265 | 265 | $resource = __DIR__.'/Controller'; |
266 | 266 | $cachePrefix = 'Origin'; |
267 | 267 | |
268 | 268 | return $app['eccube.router']($resource, $cachePrefix); |
269 | 269 | }; |
270 | 270 | |
271 | - $this['eccube.routers.plugin'] = function ($app) { |
|
271 | + $this['eccube.routers.plugin'] = function($app) { |
|
272 | 272 | // TODO 有効なプラグインを対象とする必要がある. |
273 | 273 | $dirs = Finder::create() |
274 | 274 | ->in($app['config']['root_dir'].'/app/Plugin') |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | return $routers; |
286 | 286 | }; |
287 | 287 | |
288 | - $this['eccube.router.extend'] = function ($app) { |
|
288 | + $this['eccube.router.extend'] = function($app) { |
|
289 | 289 | // TODO ディレクトリ名は暫定 |
290 | 290 | $resource = $app['config']['root_dir'].'/app/Acme/Controller'; |
291 | 291 | $cachePrefix = 'Extend'; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | return $router; |
296 | 296 | }; |
297 | 297 | |
298 | - $this->extend('request_matcher', function ($matcher, $app) { |
|
298 | + $this->extend('request_matcher', function($matcher, $app) { |
|
299 | 299 | $matchers = []; |
300 | 300 | $matchers[] = $app['eccube.router.extend']; |
301 | 301 | foreach ($app['eccube.routers.plugin'] as $router) { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | return new ChainUrlMatcher($matchers, $app['request_context']); |
308 | 308 | }); |
309 | 309 | |
310 | - $this->extend('url_generator', function ($generator, $app) { |
|
310 | + $this->extend('url_generator', function($generator, $app) { |
|
311 | 311 | $generators = []; |
312 | 312 | $generators[] = $app['eccube.router.extend']; |
313 | 313 | foreach ($app['eccube.routers.plugin'] as $router) { |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | }); |
321 | 321 | |
322 | 322 | // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため) |
323 | - $this->extend('routes', function ($routes, $app) { |
|
323 | + $this->extend('routes', function($routes, $app) { |
|
324 | 324 | $routes->addCollection($app['eccube.router.extend']->getRouteCollection()); |
325 | 325 | foreach ($app['eccube.routers.plugin'] as $router) { |
326 | 326 | $routes->addCollection($router->getRouteCollection()); |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | 'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator', |
350 | 350 | 'locale_fallbacks' => ['ja', 'en'], |
351 | 351 | )); |
352 | - $this->extend('translator', function ($translator, \Silex\Application $app) { |
|
352 | + $this->extend('translator', function($translator, \Silex\Application $app) { |
|
353 | 353 | $translator->addLoader('yaml', new \Symfony\Component\Translation\Loader\YamlFileLoader()); |
354 | 354 | |
355 | 355 | $file = __DIR__.'/Resource/locale/validator.'.$app['locale'].'.yml'; |
@@ -396,14 +396,14 @@ discard block |
||
396 | 396 | $this->register(new \Silex\Provider\TwigServiceProvider(), array( |
397 | 397 | 'twig.form.templates' => array('Form/form_layout.twig'), |
398 | 398 | )); |
399 | - $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) { |
|
399 | + $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) { |
|
400 | 400 | $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app)); |
401 | 401 | $twig->addExtension(new \Twig_Extension_StringLoader()); |
402 | 402 | |
403 | 403 | return $twig; |
404 | 404 | }); |
405 | 405 | |
406 | - $this->before(function (Request $request, \Silex\Application $app) { |
|
406 | + $this->before(function(Request $request, \Silex\Application $app) { |
|
407 | 407 | $app['admin'] = $app['front'] = false; |
408 | 408 | $pathinfo = rawurldecode($request->getPathInfo()); |
409 | 409 | if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) { |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | } |
420 | 420 | $paths[] = $app['config']['template_admin_realdir']; |
421 | 421 | $paths[] = __DIR__.'/../../app/Plugin'; |
422 | - $cacheDir = __DIR__.'/../../app/cache/twig/admin'; |
|
422 | + $cacheDir = __DIR__.'/../../app/cache/twig/admin'; |
|
423 | 423 | } else { |
424 | 424 | // モバイル端末時、smartphoneディレクトリを探索パスに追加する. |
425 | 425 | if ($app['mobile_detect.device_type'] == \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP) { |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | } |
435 | 435 | $paths[] = $app['config']['template_default_realdir']; |
436 | 436 | $paths[] = __DIR__.'/../../app/Plugin'; |
437 | - $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code']; |
|
437 | + $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code']; |
|
438 | 438 | } |
439 | 439 | $app['twig']->setCache($app['debug'] ? null : $cacheDir); |
440 | 440 | $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | }, self::EARLY_EVENT); |
453 | 453 | |
454 | 454 | // twigのグローバル変数を定義. |
455 | - $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) { |
|
455 | + $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) { |
|
456 | 456 | // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため, |
457 | 457 | // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う |
458 | 458 | if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) { |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | // メール送信時の文字エンコード指定(デフォルトはUTF-8) |
539 | 539 | if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) { |
540 | 540 | if ($this['config']['mail']['charset_iso_2022_jp'] === true) { |
541 | - \Swift::init(function () { |
|
541 | + \Swift::init(function() { |
|
542 | 542 | \Swift_DependencyContainer::getInstance() |
543 | 543 | ->register('mime.qpheaderencoder') |
544 | 544 | ->asAliasOf('mime.base64headerencoder'); |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | $this->register(new \Saxulum\DoctrineOrmManagerRegistry\Provider\DoctrineOrmManagerRegistryProvider()); |
574 | 574 | |
575 | 575 | $app = $this; |
576 | - $this->extend('db.event_manager', function ($evm) use ($app) { |
|
576 | + $this->extend('db.event_manager', function($evm) use ($app) { |
|
577 | 577 | $initSubscriber = new InitSubscriber($app); |
578 | 578 | $evm->addEventSubscriber($initSubscriber); |
579 | 579 | |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | |
669 | 669 | $this->extend( |
670 | 670 | 'orm.em.config', |
671 | - function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
671 | + function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
672 | 672 | |
673 | 673 | /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */ |
674 | 674 | $chain = $config->getMetadataDriverImpl(); |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | } |
691 | 691 | ); |
692 | 692 | |
693 | - $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
693 | + $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
694 | 694 | // tax_rule |
695 | 695 | $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule'); |
696 | 696 | $taxRuleRepository->setApplication($app); |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | // second level cacheの設定. |
720 | 720 | $this->extend( |
721 | 721 | 'orm.em.config', |
722 | - function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
722 | + function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
723 | 723 | $config->setSecondLevelCacheEnabled(); |
724 | 724 | $cacheConfig = $config->getSecondLevelCacheConfiguration(); |
725 | 725 | $regionConfig = $cacheConfig->getRegionsConfiguration(); |
@@ -808,31 +808,31 @@ discard block |
||
808 | 808 | array('^/mypage', 'ROLE_USER', $channel), |
809 | 809 | ); |
810 | 810 | |
811 | - $this['eccube.password_encoder'] = function ($app) { |
|
811 | + $this['eccube.password_encoder'] = function($app) { |
|
812 | 812 | return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']); |
813 | 813 | }; |
814 | - $this['security.encoder_factory'] = function ($app) { |
|
814 | + $this['security.encoder_factory'] = function($app) { |
|
815 | 815 | return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array( |
816 | 816 | 'Eccube\Entity\Customer' => $app['eccube.password_encoder'], |
817 | 817 | 'Eccube\Entity\Member' => $app['eccube.password_encoder'], |
818 | 818 | )); |
819 | 819 | }; |
820 | - $this['eccube.event_listner.security'] = function ($app) { |
|
820 | + $this['eccube.event_listner.security'] = function($app) { |
|
821 | 821 | return new \Eccube\EventListener\SecurityEventListener($app['orm.em']); |
822 | 822 | }; |
823 | 823 | |
824 | 824 | // Voterの設定 |
825 | - $this['authority_voter'] = function ($app) { |
|
825 | + $this['authority_voter'] = function($app) { |
|
826 | 826 | return new \Eccube\Security\Voter\AuthorityVoter($app); |
827 | 827 | }; |
828 | 828 | |
829 | - $this->extend('security.voters', function ($voters, \Silex\Application $app) { |
|
829 | + $this->extend('security.voters', function($voters, \Silex\Application $app) { |
|
830 | 830 | $voters[] = $app['authority_voter']; |
831 | 831 | |
832 | 832 | return $voters; |
833 | 833 | }); |
834 | 834 | |
835 | - $this['security.access_manager'] = function ($app) { |
|
835 | + $this['security.access_manager'] = function($app) { |
|
836 | 836 | return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous'); |
837 | 837 | }; |
838 | 838 | |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | { |
847 | 847 | $config = $this['config']; |
848 | 848 | if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) { |
849 | - $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) { |
|
849 | + $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) { |
|
850 | 850 | // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する |
851 | 851 | Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies'])); |
852 | 852 | }, self::EARLY_EVENT); |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | $this->register(new ServiceProvider\EccubePluginServiceProvider()); |
864 | 864 | |
865 | 865 | // TODO Acme\ServiceProvider の初期化はここで OK? |
866 | - if (array_key_exists('service',$this['config'])) { |
|
866 | + if (array_key_exists('service', $this['config'])) { |
|
867 | 867 | foreach ($this['config']['service'] as $service) { |
868 | 868 | $this->register(new $service); |
869 | 869 | } |
@@ -1019,7 +1019,7 @@ discard block |
||
1019 | 1019 | $app = $this; |
1020 | 1020 | |
1021 | 1021 | // Response Event(http cache対応、event実行は一番遅く設定) |
1022 | - $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) { |
|
1022 | + $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) { |
|
1023 | 1023 | |
1024 | 1024 | if (!$event->isMasterRequest()) { |
1025 | 1025 | return; |
@@ -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; |