Completed
Pull Request — experimental/3.1 (#2674)
by
unknown
29:06 queued 02:39
created
src/Eccube/Service/PluginService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     {
182 182
         // Proxyのクラスをロードせずにスキーマを更新するために、
183 183
         // インストール時には一時的なディレクトリにProxyを生成する
184
-        $tmpProxyOutputDir = sys_get_temp_dir() . '/proxy_' . StringUtil::random(12);
184
+        $tmpProxyOutputDir = sys_get_temp_dir().'/proxy_'.StringUtil::random(12);
185 185
         @mkdir($tmpProxyOutputDir);
186 186
 
187 187
         try {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             if (!empty($config_cache)) {
248 248
                 $meta = $config_cache;
249 249
             } else {
250
-                $meta = $this->readYml($dir . '/config.yml');
250
+                $meta = $this->readYml($dir.'/config.yml');
251 251
             }
252 252
         } catch (\Symfony\Component\Yaml\Exception\ParseException $e) {
253 253
             throw new PluginException($e->getMessage(), $e->getCode(), $e);
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
     {
857 857
         $result = array_keys($packages);
858 858
         if ($getVersion) {
859
-            $result = array_map(function ($package, $version) {
859
+            $result = array_map(function($package, $version) {
860 860
                 return $package.':'.$version;
861 861
             }, array_keys($packages), array_values($packages));
862 862
         }
Please login to merge, or discard this patch.
src/Eccube/Util/StringUtil.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             return $value;
160 160
         }
161 161
 
162
-        return rtrim(mb_substr($value, 0, $length, 'UTF-8')) . $end;
162
+        return rtrim(mb_substr($value, 0, $length, 'UTF-8')).$end;
163 163
     }
164 164
 
165 165
 
@@ -186,18 +186,18 @@  discard block
 block discarded – undo
186 186
         }
187 187
         if ($diff->m == 1 || $diff->days > 0) {
188 188
             if ($diff->days <= 31) {
189
-                return $diff->days . '日前';
189
+                return $diff->days.'日前';
190 190
             }
191 191
             // return $date->format("Y/m/d H:i");
192 192
             return $date->format("Y/m/d");
193 193
         }
194 194
         if ($diff->h > 0) {
195
-            return $diff->h . "時間前";
195
+            return $diff->h."時間前";
196 196
         }
197 197
         if ($diff->i > 0) {
198
-            return $diff->i . "分前";
198
+            return $diff->i."分前";
199 199
         }
200
-        return $diff->s . "秒前";
200
+        return $diff->s."秒前";
201 201
     }
202 202
 
203 203
     /**
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Shopping/OrderType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // 支払い方法のプルダウンを生成
111 111
         $builder->addEventListener(
112 112
             FormEvents::PRE_SET_DATA,
113
-            function (FormEvent $event) {
113
+            function(FormEvent $event) {
114 114
                 /** @var Order $Order */
115 115
                 $Order = $event->getData();
116 116
                 if (is_null($Order) || !$Order->getId()) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         // TODO Calculatorで行うのが適切.
159 159
         $builder->addEventListener(
160 160
             FormEvents::POST_SUBMIT,
161
-            function (FormEvent $event) {
161
+            function(FormEvent $event) {
162 162
                 /** @var Order $Order */
163 163
                 $Order = $event->getData();
164 164
                 // XXX 非会員購入の際, use_point が null で submit される?
Please login to merge, or discard this patch.
src/Eccube/DI/DIServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     public function register(Container $app)
14 14
     {
15
-        $app['eccube.di'] = function (Container $app) {
15
+        $app['eccube.di'] = function(Container $app) {
16 16
             $di = new DependencyBuilder(
17 17
                 $app['eccube.di.generator.dir'],
18 18
                 $app['eccube.di.generator.class'],
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         // XXX これを入れないと EntityEventDispatcher が有効になった時テストがコケる
39 39
         if (!$app->offsetExists('eccube.event.dispatcher')) {
40
-            $app['eccube.event.dispatcher'] = function () use ($app) {
40
+            $app['eccube.event.dispatcher'] = function() use ($app) {
41 41
                 return $app['dispatcher'];
42 42
             };
43 43
         }
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/ComposerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function register(Container $app)
40 40
     {
41
-        $app['eccube.service.composer'] = function () use ($app) {
41
+        $app['eccube.service.composer'] = function() use ($app) {
42 42
             /**@var \Eccube\Service\SystemService $systemService */
43 43
             $systemService = $app['eccube.service.system'];
44 44
             $composerMemory = $app['config']['composer_memory_limit'];
Please login to merge, or discard this patch.
src/Eccube/Application.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         $this->register(new MobileDetectServiceProvider());
237 237
         $this->register(new TwigLintServiceProvider());
238 238
 
239
-        $this->error(function (\Exception $e, Request $request, $code) {
239
+        $this->error(function(\Exception $e, Request $request, $code) {
240 240
             if ($this['debug']) {
241 241
                 return;
242 242
             }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         $pluginSubDirs = (function($dirName) use ($enabledPluginDirs) {
303 303
             return array_map(function($pluginDir) use ($dirName) {
304
-                return $pluginDir . '/' . $dirName;
304
+                return $pluginDir.'/'.$dirName;
305 305
             }, $enabledPluginDirs);
306 306
         });
307 307
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
             return $router;
379 379
         });
380 380
 
381
-        $this['eccube.router.origin'] = function ($app) {
381
+        $this['eccube.router.origin'] = function($app) {
382 382
             $resource = __DIR__.'/Controller';
383 383
             $cachePrefix = 'Origin';
384 384
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         $this['eccube.routers.plugin'] = [];
389 389
 
390 390
         if (isset($this['config']['vendor_dir']) && file_exists($this['config']['vendor_dir'].'/Controller')) {
391
-            $this['eccube.router.extend'] = function ($app) {
391
+            $this['eccube.router.extend'] = function($app) {
392 392
                 $resource = $app['config']['vendor_dir'].'/Controller';
393 393
                 $cachePrefix = 'Extend';
394 394
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
                 return $router;
398 398
             };
399 399
         }
400
-        $this->extend('request_matcher', function ($matcher, $app) {
400
+        $this->extend('request_matcher', function($matcher, $app) {
401 401
             $matchers = [];
402 402
             if (isset($app['eccube.router.extend'])) {
403 403
                 $matchers[] = $app['eccube.router.extend'];
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
             return new ChainUrlMatcher($matchers, $app['request_context']);
412 412
         });
413 413
 
414
-        $this->extend('url_generator', function ($generator, $app) {
414
+        $this->extend('url_generator', function($generator, $app) {
415 415
             $generators = [];
416 416
             if (isset($app['eccube.router.extend'])) {
417 417
                 $generators[] = $app['eccube.router.extend'];
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
         });
427 427
 
428 428
         // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため)
429
-        $this->extend('routes', function ($routes, $app) {
429
+        $this->extend('routes', function($routes, $app) {
430 430
             if (isset($app['eccube.router.extend'])) {
431 431
                 $routes->addCollection($app['eccube.router.extend']->getRouteCollection());
432 432
             }
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
             'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator',
462 462
             'locale_fallbacks' => [$this['config']['locale'], 'en'],
463 463
         ));
464
-        $this->extend('translator', function ($translator, \Silex\Application $app) {
464
+        $this->extend('translator', function($translator, \Silex\Application $app) {
465 465
             $translator->addLoader('php', new \Symfony\Component\Translation\Loader\PhpFileLoader());
466 466
 
467 467
             $file = __DIR__.'/Resource/locale/messages.'.$app['locale'].'.php';
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
         $this->register(new \Silex\Provider\TwigServiceProvider(), array(
505 505
             'twig.form.templates' => array('Form/form_div_layout.twig'),
506 506
         ));
507
-        $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) {
507
+        $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) {
508 508
             $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app));
509 509
             $twig->addExtension(new \Twig_Extension_StringLoader());
510 510
 
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
             return $runtimes;
523 523
         });
524 524
 
525
-        $this->before(function (Request $request, \Silex\Application $app) {
525
+        $this->before(function(Request $request, \Silex\Application $app) {
526 526
             $app['admin'] = $app['front'] = false;
527 527
             $pathinfo = rawurldecode($request->getPathInfo());
528 528
             if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) {
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
                 }
539 539
                 $paths[] = $app['config']['template_admin_realdir'];
540 540
                 $paths[] = __DIR__.'/../../app/Plugin';
541
-                $cacheDir =  __DIR__.'/../../app/cache/twig/admin';
541
+                $cacheDir = __DIR__.'/../../app/cache/twig/admin';
542 542
             } else {
543 543
                 // モバイル端末時、smartphoneディレクトリを探索パスに追加する.
544 544
                 if ($app['mobile_detect.device_type'] == \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP) {
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
                 }
554 554
                 $paths[] = $app['config']['template_default_realdir'];
555 555
                 $paths[] = __DIR__.'/../../app/Plugin';
556
-                $cacheDir =  __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
556
+                $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code'];
557 557
             }
558 558
             $app['twig']->setCache($app['debug'] ? null : $cacheDir);
559 559
             $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths));
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         }, self::EARLY_EVENT);
572 572
 
573 573
         // twigのグローバル変数を定義.
574
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
574
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) {
575 575
             // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため,
576 576
             // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う
577 577
             if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) {
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
         // メール送信時の文字エンコード指定(デフォルトはUTF-8)
657 657
         if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) {
658 658
             if ($this['config']['mail']['charset_iso_2022_jp'] === true) {
659
-                \Swift::init(function () {
659
+                \Swift::init(function() {
660 660
                     \Swift_DependencyContainer::getInstance()
661 661
                         ->register('mime.qpheaderencoder')
662 662
                         ->asAliasOf('mime.base64headerencoder');
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
         $this->register(new \Saxulum\DoctrineOrmManagerRegistry\Provider\DoctrineOrmManagerRegistryProvider());
692 692
 
693 693
         $app = $this;
694
-        $this->extend('db.event_manager', function ($evm) use ($app) {
694
+        $this->extend('db.event_manager', function($evm) use ($app) {
695 695
             $initSubscriber = new InitSubscriber($app);
696 696
             $evm->addEventSubscriber($initSubscriber);
697 697
 
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
 
809 809
         $this->extend(
810 810
             'orm.em.config',
811
-            function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
811
+            function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
812 812
 
813 813
                 /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */
814 814
                 $chain = $config->getMetadataDriverImpl();
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
             }
831 831
         );
832 832
 
833
-        $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
833
+        $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) {
834 834
             // save
835 835
             $saveEventSubscriber = new \Eccube\Doctrine\EventSubscriber\SaveEventSubscriber($app);
836 836
             $em->getEventManager()->addEventSubscriber($saveEventSubscriber);
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
             // second level cacheの設定.
856 856
             $this->extend(
857 857
                 'orm.em.config',
858
-                function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
858
+                function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) {
859 859
                     $config->setSecondLevelCacheEnabled();
860 860
                     $cacheConfig = $config->getSecondLevelCacheConfiguration();
861 861
                     $regionConfig = $cacheConfig->getRegionsConfiguration();
@@ -944,31 +944,31 @@  discard block
 block discarded – undo
944 944
             array('^/mypage', 'ROLE_USER', $channel),
945 945
         );
946 946
 
947
-        $this['eccube.password_encoder'] = function ($app) {
947
+        $this['eccube.password_encoder'] = function($app) {
948 948
             return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']);
949 949
         };
950
-        $this['security.encoder_factory'] = function ($app) {
950
+        $this['security.encoder_factory'] = function($app) {
951 951
             return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array(
952 952
                 'Eccube\Entity\Customer' => $app['eccube.password_encoder'],
953 953
                 'Eccube\Entity\Member' => $app['eccube.password_encoder'],
954 954
             ));
955 955
         };
956
-        $this['eccube.event_listner.security'] = function ($app) {
956
+        $this['eccube.event_listner.security'] = function($app) {
957 957
             return new \Eccube\EventListener\SecurityEventListener($app['orm.em']);
958 958
         };
959 959
 
960 960
         // Voterの設定
961
-        $this['authority_voter'] = function ($app) {
961
+        $this['authority_voter'] = function($app) {
962 962
             return new \Eccube\Security\Voter\AuthorityVoter($app);
963 963
         };
964 964
 
965
-        $this->extend('security.voters', function ($voters, \Silex\Application $app) {
965
+        $this->extend('security.voters', function($voters, \Silex\Application $app) {
966 966
             $voters[] = $app['authority_voter'];
967 967
 
968 968
             return $voters;
969 969
         });
970 970
 
971
-        $this['security.access_manager'] = function ($app) {
971
+        $this['security.access_manager'] = function($app) {
972 972
             return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous');
973 973
         };
974 974
 
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
         // ロードバランサやプロキシの設定をする
984 984
         $config = $this['config'];
985 985
         if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) {
986
-            $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) {
986
+            $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) {
987 987
                 // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する
988 988
                 Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies']));
989 989
             }, self::EARLY_EVENT);
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
         $this->register(new ServiceProvider\EccubePluginServiceProvider());
1003 1003
 
1004 1004
         // TODO Acme\ServiceProvider の初期化はここで OK?
1005
-        if (array_key_exists('service',$this['config'])) {
1005
+        if (array_key_exists('service', $this['config'])) {
1006 1006
             foreach ($this['config']['service'] as $service) {
1007 1007
                 $this->register(new $service);
1008 1008
             }
@@ -1124,7 +1124,7 @@  discard block
 block discarded – undo
1124 1124
         $app = $this;
1125 1125
 
1126 1126
         // Response Event(http cache対応、event実行は一番遅く設定)
1127
-        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
1127
+        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {
1128 1128
 
1129 1129
             if (!$event->isMasterRequest()) {
1130 1130
                 return;
Please login to merge, or discard this patch.
src/Eccube/Repository/ProductRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                         NORMALIZE(p.search_word) LIKE NORMALIZE(:%s) OR 
97 97
                         EXISTS (SELECT wpc%d FROM \Eccube\Entity\ProductClass wpc%d WHERE p = wpc%d.Product AND NORMALIZE(wpc%d.code) LIKE NORMALIZE(:%s))', 
98 98
                         $key, $key, $index, $index, $index, $index, $key))
99
-                    ->setParameter($key, '%' . $keyword . '%');
99
+                    ->setParameter($key, '%'.$keyword.'%');
100 100
             }
101 101
         }
102 102
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $qb
160 160
                 ->andWhere('p.id = :id OR p.name LIKE :likeid OR pc.code LIKE :likeid')
161 161
                 ->setParameter('id', $id)
162
-                ->setParameter('likeid', '%' . $searchData['id'] . '%');
162
+                ->setParameter('likeid', '%'.$searchData['id'].'%');
163 163
         }
164 164
 
165 165
         // code
Please login to merge, or discard this patch.
src/Eccube/Service/Composer/OutputParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output));
40 40
         $installedLogs = array_filter(
41 41
             array_map(
42
-                function ($line) {
42
+                function($line) {
43 43
                     $matches = array();
44 44
                     preg_match('/^  - Installing (.*?) \((.*?)\) .*/', $line, $matches);
45 45
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public static function parseInfo($output)
63 63
     {
64 64
         $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output));
65
-        $infoLogs = array_filter(array_map(function ($line) {
65
+        $infoLogs = array_filter(array_map(function($line) {
66 66
             $matches = array();
67 67
             preg_match('/^(name|descrip.|keywords|versions|type|license|source|dist|names)\s*:\s*(.*)$/', $line, $matches);
68 68
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public static function parseConfig($output)
87 87
     {
88 88
         $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output));
89
-        $rowArray = array_filter($rowArray, function ($line) {
89
+        $rowArray = array_filter($rowArray, function($line) {
90 90
             return !preg_match('/^<warning>.*/', $line);
91 91
         });
92 92
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     public static function parseList($output)
103 103
     {
104 104
         $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output));
105
-        $rawConfig = array_map(function ($line) {
105
+        $rawConfig = array_map(function($line) {
106 106
             $matches = array();
107 107
             preg_match('/^\[(.*?)\]\s?(.*)$/', $line, $matches);
108 108
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     public static function parseComposerVersion($output)
160 160
     {
161 161
         $rowArray = explode(PHP_EOL, str_replace('\r\n', PHP_EOL, $output));
162
-        $rowArray = array_filter($rowArray, function ($line) {
162
+        $rowArray = array_filter($rowArray, function($line) {
163 163
             return preg_match('/^Composer */', $line);
164 164
         });
165 165
         return array_shift($rowArray);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Spacing   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                     foreach ($data as $row) {
189 189
 
190 190
                         if ($headerSize != count($row)) {
191
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
191
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
192 192
                             return $this->render($app, $form, $headers);
193 193
                         }
194 194
 
@@ -199,33 +199,33 @@  discard block
 block discarded – undo
199 199
                             if (preg_match('/^\d+$/', $row['商品ID'])) {
200 200
                                 $Product = $this->productRepository->find($row['商品ID']);
201 201
                                 if (!$Product) {
202
-                                    $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
202
+                                    $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
203 203
                                     return $this->render($app, $form, $headers);
204 204
                                 }
205 205
                             } else {
206
-                                $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
206
+                                $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
207 207
                                 return $this->render($app, $form, $headers);
208 208
                             }
209 209
 
210 210
                         }
211 211
 
212 212
                         if ($row['公開ステータス(ID)'] == '') {
213
-                            $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が設定されていません。');
213
+                            $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が設定されていません。');
214 214
                         } else {
215 215
                             if (preg_match('/^\d+$/', $row['公開ステータス(ID)'])) {
216 216
                                 $ProductStatus = $this->productStatusRepository->find($row['公開ステータス(ID)']);
217 217
                                 if (!$ProductStatus) {
218
-                                    $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
218
+                                    $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
219 219
                                 } else {
220 220
                                     $Product->setStatus($ProductStatus);
221 221
                                 }
222 222
                             } else {
223
-                                $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
223
+                                $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
224 224
                             }
225 225
                         }
226 226
 
227 227
                         if (StringUtil::isBlank($row['商品名'])) {
228
-                            $this->addErrors(($data->key() + 1) . '行目の商品名が設定されていません。');
228
+                            $this->addErrors(($data->key() + 1).'行目の商品名が設定されていません。');
229 229
                             return $this->render($app, $form, $headers);
230 230
                         } else {
231 231
                             $Product->setName(StringUtil::trimAll($row['商品名']));
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
                                     if (preg_match('/^\d+$/', $deliveryFee) && $deliveryFee >= 0) {
285 285
                                         $ProductClassOrg->setDeliveryFee($deliveryFee);
286 286
                                     } else {
287
-                                        $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
287
+                                        $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
288 288
                                     }
289 289
                                 }
290 290
                             }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                             if ($row['規格分類1(ID)'] != '') {
293 293
 
294 294
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
295
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
295
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
296 296
                                 } else {
297 297
                                     // 商品規格あり
298 298
                                     // 企画分類あり商品を作成
@@ -307,30 +307,30 @@  discard block
 block discarded – undo
307 307
                                     if (preg_match('/^\d+$/', $row['規格分類1(ID)'])) {
308 308
                                         $ClassCategory1 = $this->classCategoryRepository->find($row['規格分類1(ID)']);
309 309
                                         if (!$ClassCategory1) {
310
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
310
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
311 311
                                         } else {
312 312
                                             $ProductClass->setClassCategory1($ClassCategory1);
313 313
                                         }
314 314
                                     } else {
315
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
315
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
316 316
                                     }
317 317
 
318 318
                                     if ($row['規格分類2(ID)'] != '') {
319 319
                                         if (preg_match('/^\d+$/', $row['規格分類2(ID)'])) {
320 320
                                             $ClassCategory2 = $this->classCategoryRepository->find($row['規格分類2(ID)']);
321 321
                                             if (!$ClassCategory2) {
322
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
322
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
323 323
                                             } else {
324 324
                                                 if ($ClassCategory1 &&
325 325
                                                     ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
326 326
                                                 ) {
327
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
327
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
328 328
                                                 } else {
329 329
                                                     $ProductClass->setClassCategory2($ClassCategory2);
330 330
                                                 }
331 331
                                             }
332 332
                                         } else {
333
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
333
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
334 334
                                         }
335 335
                                     }
336 336
                                     $ProductClass->setProductStock($ProductStock);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
                             } else {
344 344
                                 if ($row['規格分類2(ID)'] != '') {
345
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
345
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
346 346
                                 }
347 347
                             }
348 348
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
                                             if (preg_match('/^\d+$/', $deliveryFee) && $deliveryFee >= 0) {
371 371
                                                 $pc->setDeliveryFee($deliveryFee);
372 372
                                             } else {
373
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
373
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
374 374
                                             }
375 375
                                         }
376 376
                                     }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
                                 }
393 393
 
394 394
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
395
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
395
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
396 396
                                 } else {
397 397
 
398 398
                                     // 必ず規格分類1がセットされている
@@ -401,36 +401,36 @@  discard block
 block discarded – undo
401 401
                                     if (preg_match('/^\d+$/', $classCategoryId1)) {
402 402
                                         $ClassCategory1 = $this->classCategoryRepository->find($classCategoryId1);
403 403
                                         if (!$ClassCategory1) {
404
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
404
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
405 405
                                         }
406 406
                                     } else {
407
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
407
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
408 408
                                     }
409 409
 
410 410
                                     $ClassCategory2 = null;
411 411
                                     if ($row['規格分類2(ID)'] != '') {
412 412
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() == null) {
413
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)は設定できません。');
413
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)は設定できません。');
414 414
                                         } else {
415 415
                                             if (preg_match('/^\d+$/', $classCategoryId2)) {
416 416
                                                 $ClassCategory2 = $this->classCategoryRepository->find($classCategoryId2);
417 417
                                                 if (!$ClassCategory2) {
418
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
418
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
419 419
                                                 } else {
420 420
                                                     if ($ClassCategory1 &&
421 421
                                                         ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
422 422
                                                     ) {
423
-                                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
423
+                                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
424 424
                                                     }
425 425
                                                 }
426 426
                                             } else {
427
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
427
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
428 428
                                             }
429 429
 
430 430
                                         }
431 431
                                     } else {
432 432
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() != null) {
433
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)に値を設定してください。');
433
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)に値を設定してください。');
434 434
                                         }
435 435
                                     }
436 436
                                     $ProductClass = $this->createProductClass($row, $Product, $app, $data, $ClassCategory1, $ClassCategory2);
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
                                             if (preg_match('/^\d+$/', $deliveryFee) && $deliveryFee >= 0) {
442 442
                                                 $ProductClass->setDeliveryFee($deliveryFee);
443 443
                                             } else {
444
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
444
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
445 445
                                             }
446 446
                                         }
447 447
                                     }
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
                     foreach ($data as $row) {
532 532
 
533 533
                         if ($headerSize != count($row)) {
534
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
534
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
535 535
                             return $this->render($app, $form, $headers);
536 536
                         }
537 537
 
@@ -539,23 +539,23 @@  discard block
 block discarded – undo
539 539
                             $Category = new Category();
540 540
                         } else {
541 541
                             if (!preg_match('/^\d+$/', $row['カテゴリID'])) {
542
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
542
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
543 543
                                 return $this->render($app, $form, $headers);
544 544
                             }
545 545
                             $Category = $this->categoryRepository->find($row['カテゴリID']);
546 546
                             if (!$Category) {
547
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
547
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
548 548
                                 return $this->render($app, $form, $headers);
549 549
                             }
550 550
                             if ($row['カテゴリID'] == $row['親カテゴリID']) {
551
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDと親カテゴリIDが同じです。');
551
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDと親カテゴリIDが同じです。');
552 552
                                 return $this->render($app, $form, $headers);
553 553
                             }
554 554
 
555 555
                         }
556 556
 
557 557
                         if (StringUtil::isBlank($row['カテゴリ名'])) {
558
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリ名が設定されていません。');
558
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリ名が設定されていません。');
559 559
                             return $this->render($app, $form, $headers);
560 560
                         } else {
561 561
                             $Category->setName(StringUtil::trimAll($row['カテゴリ名']));
@@ -564,13 +564,13 @@  discard block
 block discarded – undo
564 564
                         if ($row['親カテゴリID'] != '') {
565 565
 
566 566
                             if (!preg_match('/^\d+$/', $row['親カテゴリID'])) {
567
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
567
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
568 568
                                 return $this->render($app, $form, $headers);
569 569
                             }
570 570
 
571 571
                             $ParentCategory = $this->categoryRepository->find($row['親カテゴリID']);
572 572
                             if (!$ParentCategory) {
573
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
573
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
574 574
                                 return $this->render($app, $form, $headers);
575 575
                             }
576 576
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
                         }
587 587
 
588 588
                         if ($this->appConfig['category_nest_level'] < $Category->getHierarchy()) {
589
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリが最大レベルを超えているため設定できません。');
589
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリが最大レベルを超えているため設定できません。');
590 590
                             return $this->render($app, $form, $headers);
591 591
                         }
592 592
 
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
             throw new NotFoundHttpException();
637 637
         }
638 638
 
639
-        $response->setCallback(function () use ($app, $request, $headers) {
639
+        $response->setCallback(function() use ($app, $request, $headers) {
640 640
 
641 641
             // ヘッダ行の出力
642 642
             $row = array();
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
         });
652 652
 
653 653
         $response->headers->set('Content-Type', 'application/octet-stream');
654
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
654
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
655 655
         $response->send();
656 656
 
657 657
         return $response;
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
         if (!empty($this->fileName)) {
675 675
             try {
676 676
                 $fs = new Filesystem();
677
-                $fs->remove($this->appConfig['csv_temp_realdir'] . '/' . $this->fileName);
677
+                $fs->remove($this->appConfig['csv_temp_realdir'].'/'.$this->fileName);
678 678
             } catch (\Exception $e) {
679 679
                 // エラーが発生しても無視する
680 680
             }
@@ -697,10 +697,10 @@  discard block
 block discarded – undo
697 697
     protected function getImportData($app, $formFile)
698 698
     {
699 699
         // アップロードされたCSVファイルを一時ディレクトリに保存
700
-        $this->fileName = 'upload_' . StringUtil::random() . '.' . $formFile->getClientOriginalExtension();
700
+        $this->fileName = 'upload_'.StringUtil::random().'.'.$formFile->getClientOriginalExtension();
701 701
         $formFile->move($this->appConfig['csv_temp_realdir'], $this->fileName);
702 702
 
703
-        $file = file_get_contents($this->appConfig['csv_temp_realdir'] . '/' . $this->fileName);
703
+        $file = file_get_contents($this->appConfig['csv_temp_realdir'].'/'.$this->fileName);
704 704
 
705 705
         if ('\\' === DIRECTORY_SEPARATOR && PHP_VERSION_ID >= 70000) {
706 706
             // Windows 環境の PHP7 の場合はファイルエンコーディングを CP932 に合わせる
@@ -796,8 +796,8 @@  discard block
 block discarded – undo
796 796
                 if (!$Category) {
797 797
                     $this->addErrors(($data->key() + 1).'行目の商品カテゴリ(ID)「'.$category.'」が存在しません。');
798 798
                 } else {
799
-                    foreach($Category->getPath() as $ParentCategory){
800
-                        if (!isset($categoriesIdList[$ParentCategory->getId()])){
799
+                    foreach ($Category->getPath() as $ParentCategory) {
800
+                        if (!isset($categoriesIdList[$ParentCategory->getId()])) {
801 801
                             $ProductCategory = $this->makeProductCategory($Product, $ParentCategory, $sortNo);
802 802
                             $this->entityManager->persist($ProductCategory);
803 803
                             $sortNo++;
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
                             $categoriesIdList[$ParentCategory->getId()] = true;
806 806
                         }
807 807
                     }
808
-                    if (!isset($categoriesIdList[$Category->getId()])){
808
+                    if (!isset($categoriesIdList[$Category->getId()])) {
809 809
                         $ProductCategory = $this->makeProductCategory($Product, $Category, $sortNo);
810 810
                         $sortNo++;
811 811
                         $this->em->persist($ProductCategory);
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
                 }
861 861
             }
862 862
             if (!$Tag) {
863
-                $this->addErrors(($data->key() + 1) . '行目のタグ(ID)「' . $tag_id . '」が存在しません。');
863
+                $this->addErrors(($data->key() + 1).'行目のタグ(ID)「'.$tag_id.'」が存在しません。');
864 864
             }
865 865
         }
866 866
     }
@@ -879,17 +879,17 @@  discard block
 block discarded – undo
879 879
 
880 880
 
881 881
         if ($row['販売種別(ID)'] == '') {
882
-            $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が設定されていません。');
882
+            $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が設定されていません。');
883 883
         } else {
884 884
             if (preg_match('/^\d+$/', $row['販売種別(ID)'])) {
885 885
                 $SaleType = $this->saleTypeRepository->find($row['販売種別(ID)']);
886 886
                 if (!$SaleType) {
887
-                    $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が存在しません。');
887
+                    $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が存在しません。');
888 888
                 } else {
889 889
                     $ProductClass->setSaleType($SaleType);
890 890
                 }
891 891
             } else {
892
-                $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が存在しません。');
892
+                $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が存在しません。');
893 893
             }
894 894
         }
895 895
 
@@ -900,12 +900,12 @@  discard block
 block discarded – undo
900 900
             if (preg_match('/^\d+$/', $row['発送日目安(ID)'])) {
901 901
                 $DeliveryDuration = $this->deliveryDurationRepository->find($row['発送日目安(ID)']);
902 902
                 if (!$DeliveryDuration) {
903
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
903
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
904 904
                 } else {
905 905
                     $ProductClass->setDeliveryDuration($DeliveryDuration);
906 906
                 }
907 907
             } else {
908
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
908
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
909 909
             }
910 910
         }
911 911
 
@@ -916,19 +916,19 @@  discard block
 block discarded – undo
916 916
         }
917 917
 
918 918
         if ($row['在庫数無制限フラグ'] == '') {
919
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
919
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
920 920
         } else {
921 921
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
922 922
                 $ProductClass->setStockUnlimited(false);
923 923
                 // 在庫数が設定されていなければエラー
924 924
                 if ($row['在庫数'] == '') {
925
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
925
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
926 926
                 } else {
927 927
                     $stock = str_replace(',', '', $row['在庫数']);
928 928
                     if (preg_match('/^\d+$/', $stock) && $stock >= 0) {
929 929
                         $ProductClass->setStock($stock);
930 930
                     } else {
931
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
931
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
932 932
                     }
933 933
                 }
934 934
 
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
                 $ProductClass->setStockUnlimited(true);
937 937
                 $ProductClass->setStock(null);
938 938
             } else {
939
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
939
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
940 940
             }
941 941
         }
942 942
 
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
             if (preg_match('/^\d+$/', $saleLimit) && $saleLimit >= 0) {
946 946
                 $ProductClass->setSaleLimit($saleLimit);
947 947
             } else {
948
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
948
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
949 949
             }
950 950
         }
951 951
 
@@ -954,18 +954,18 @@  discard block
 block discarded – undo
954 954
             if (preg_match('/^\d+$/', $price01) && $price01 >= 0) {
955 955
                 $ProductClass->setPrice01($price01);
956 956
             } else {
957
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
957
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
958 958
             }
959 959
         }
960 960
 
961 961
         if ($row['販売価格'] == '') {
962
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
962
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
963 963
         } else {
964 964
             $price02 = str_replace(',', '', $row['販売価格']);
965 965
             if (preg_match('/^\d+$/', $price02) && $price02 >= 0) {
966 966
                 $ProductClass->setPrice02($price02);
967 967
             } else {
968
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
968
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
969 969
             }
970 970
         }
971 971
 
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
             if (preg_match('/^\d+$/', $delivery_fee) && $delivery_fee >= 0) {
975 975
                 $ProductClass->setDeliveryFee($delivery_fee);
976 976
             } else {
977
-                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
977
+                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
978 978
             }
979 979
         }
980 980
 
@@ -1007,17 +1007,17 @@  discard block
 block discarded – undo
1007 1007
         $ProductClass->setProduct($Product);
1008 1008
 
1009 1009
         if ($row['販売種別(ID)'] == '') {
1010
-            $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が設定されていません。');
1010
+            $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が設定されていません。');
1011 1011
         } else {
1012 1012
             if (preg_match('/^\d+$/', $row['販売種別(ID)'])) {
1013 1013
                 $SaleType = $this->saleTypeRepository->find($row['販売種別(ID)']);
1014 1014
                 if (!$SaleType) {
1015
-                    $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が存在しません。');
1015
+                    $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が存在しません。');
1016 1016
                 } else {
1017 1017
                     $ProductClass->setSaleType($SaleType);
1018 1018
                 }
1019 1019
             } else {
1020
-                $this->addErrors(($data->key() + 1) . '行目の販売種別(ID)が存在しません。');
1020
+                $this->addErrors(($data->key() + 1).'行目の販売種別(ID)が存在しません。');
1021 1021
             }
1022 1022
         }
1023 1023
 
@@ -1026,12 +1026,12 @@  discard block
 block discarded – undo
1026 1026
             if (preg_match('/^\d+$/', $row['規格分類1(ID)'])) {
1027 1027
                 $ClassCategory = $this->classCategoryRepository->find($row['規格分類1(ID)']);
1028 1028
                 if (!$ClassCategory) {
1029
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
1029
+                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
1030 1030
                 } else {
1031 1031
                     $ProductClass->setClassCategory1($ClassCategory);
1032 1032
                 }
1033 1033
             } else {
1034
-                $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
1034
+                $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
1035 1035
             }
1036 1036
         }
1037 1037
 
@@ -1039,12 +1039,12 @@  discard block
 block discarded – undo
1039 1039
             if (preg_match('/^\d+$/', $row['規格分類2(ID)'])) {
1040 1040
                 $ClassCategory = $this->classCategoryRepository->find($row['規格分類2(ID)']);
1041 1041
                 if (!$ClassCategory) {
1042
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
1042
+                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
1043 1043
                 } else {
1044 1044
                     $ProductClass->setClassCategory2($ClassCategory);
1045 1045
                 }
1046 1046
             } else {
1047
-                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
1047
+                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
1048 1048
             }
1049 1049
         }
1050 1050
 
@@ -1052,12 +1052,12 @@  discard block
 block discarded – undo
1052 1052
             if (preg_match('/^\d+$/', $row['発送日目安(ID)'])) {
1053 1053
                 $DeliveryDuration = $this->deliveryDurationRepository->find($row['発送日目安(ID)']);
1054 1054
                 if (!$DeliveryDuration) {
1055
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
1055
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
1056 1056
                 } else {
1057 1057
                     $ProductClass->setDeliveryDuration($DeliveryDuration);
1058 1058
                 }
1059 1059
             } else {
1060
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
1060
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
1061 1061
             }
1062 1062
         }
1063 1063
 
@@ -1068,19 +1068,19 @@  discard block
 block discarded – undo
1068 1068
         }
1069 1069
 
1070 1070
         if ($row['在庫数無制限フラグ'] == '') {
1071
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
1071
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
1072 1072
         } else {
1073 1073
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
1074 1074
                 $ProductClass->setStockUnlimited(false);
1075 1075
                 // 在庫数が設定されていなければエラー
1076 1076
                 if ($row['在庫数'] == '') {
1077
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
1077
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
1078 1078
                 } else {
1079 1079
                     $stock = str_replace(',', '', $row['在庫数']);
1080 1080
                     if (preg_match('/^\d+$/', $stock) && $stock >= 0) {
1081 1081
                         $ProductClass->setStock($row['在庫数']);
1082 1082
                     } else {
1083
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
1083
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
1084 1084
                     }
1085 1085
                 }
1086 1086
 
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
                 $ProductClass->setStockUnlimited(true);
1089 1089
                 $ProductClass->setStock(null);
1090 1090
             } else {
1091
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
1091
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
1092 1092
             }
1093 1093
         }
1094 1094
 
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
             if (preg_match('/^\d+$/', $saleLimit) && $saleLimit >= 0) {
1098 1098
                 $ProductClass->setSaleLimit($saleLimit);
1099 1099
             } else {
1100
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
1100
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
1101 1101
             }
1102 1102
         }
1103 1103
 
@@ -1106,18 +1106,18 @@  discard block
 block discarded – undo
1106 1106
             if (preg_match('/^\d+$/', $price01) && $price01 >= 0) {
1107 1107
                 $ProductClass->setPrice01($price01);
1108 1108
             } else {
1109
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
1109
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
1110 1110
             }
1111 1111
         }
1112 1112
 
1113 1113
         if ($row['販売価格'] == '') {
1114
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
1114
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
1115 1115
         } else {
1116 1116
             $price02 = str_replace(',', '', $row['販売価格']);
1117 1117
             if (preg_match('/^\d+$/', $price02) && $price02 >= 0) {
1118 1118
                 $ProductClass->setPrice02($price02);
1119 1119
             } else {
1120
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
1120
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
1121 1121
             }
1122 1122
         }
1123 1123
 
Please login to merge, or discard this patch.