Failed Conditions
Pull Request — master (#1535)
by k-yamamura
62:45 queued 32:08
created
src/Eccube/Service/PluginService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
     public function checkPluginArchiveContent($dir)
120 120
     {
121 121
         try {
122
-            $meta = $this->readYml($dir . '/config.yml');
122
+            $meta = $this->readYml($dir.'/config.yml');
123 123
         } catch (\Symfony\Component\Yaml\Exception\ParseException $e) {
124 124
             $this->app['monolog']->warning($e->getMessage());
125 125
             throw new PluginException($e->getMessage(), $e->getCode(), $e);
Please login to merge, or discard this patch.
src/Eccube/Service/CsvExportService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     {
308 308
         $config = $this->config;
309 309
 
310
-        return function ($value) use ($config) {
310
+        return function($value) use ($config) {
311 311
             return mb_convert_encoding(
312 312
                 (string) $value, $config['csv_export_encoding'], 'UTF-8'
313 313
             );
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
             if ($Conditions instanceof ArrayCollection) {
432 432
                 $Conditions = new ArrayCollection(
433 433
                     array_map(
434
-                        function ($Entity) use ($em) {
434
+                        function($Entity) use ($em) {
435 435
                             return $em->getRepository(get_class($Entity))->find($Entity->getId());
436 436
                         }, $Conditions->toArray()
437 437
                     )
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             foreach ($images as $img) {
178 178
                 foreach ($img as $image) {
179 179
                     $extension = $image->getClientOriginalExtension();
180
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
180
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
181 181
                     $image->move($app['config']['image_temp_realdir'], $filename);
182 182
                     $files[] = $filename;
183 183
                 }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_PRODUCT_EDIT_INITIALIZE, $event);
240 240
 
241 241
         if (!$has_class) {
242
-            $ProductClass->setStockUnlimited((boolean)$ProductClass->getStockUnlimited());
242
+            $ProductClass->setStockUnlimited((boolean) $ProductClass->getStockUnlimited());
243 243
             $form['class']->setData($ProductClass);
244 244
         }
245 245
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                     $app['orm.em']->persist($ProductImage);
338 338
 
339 339
                     // 移動
340
-                    $file = new File($app['config']['image_temp_realdir'] . '/' . $add_image);
340
+                    $file = new File($app['config']['image_temp_realdir'].'/'.$add_image);
341 341
                     $file->move($app['config']['image_save_realdir']);
342 342
                 }
343 343
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 
358 358
                     // 削除
359 359
                     $fs = new Filesystem();
360
-                    $fs->remove($app['config']['image_save_realdir'] . '/' . $delete_image);
360
+                    $fs->remove($app['config']['image_save_realdir'].'/'.$delete_image);
361 361
                 }
362 362
                 $app['orm.em']->persist($Product);
363 363
                 $app['orm.em']->flush();
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
                 foreach ($deleteImages as $deleteImage) {
464 464
                     try {
465 465
                         $fs = new Filesystem();
466
-                        $fs->remove($app['config']['image_save_realdir'] . '/' . $deleteImage);
466
+                        $fs->remove($app['config']['image_save_realdir'].'/'.$deleteImage);
467 467
                     } catch (\Exception $e) {
468 468
                         // エラーが発生しても無視する
469 469
                     }
@@ -527,10 +527,10 @@  discard block
 block discarded – undo
527 527
 
528 528
                     // 画像ファイルを新規作成
529 529
                     $extension = pathinfo($Image->getFileName(), PATHINFO_EXTENSION);
530
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
530
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
531 531
                     try {
532 532
                         $fs = new Filesystem();
533
-                        $fs->copy($app['config']['image_save_realdir'] . '/' . $Image->getFileName(), $app['config']['image_save_realdir'] . '/' . $filename);
533
+                        $fs->copy($app['config']['image_save_realdir'].'/'.$Image->getFileName(), $app['config']['image_save_realdir'].'/'.$filename);
534 534
                     } catch (\Exception $e) {
535 535
                         // エラーが発生しても無視する
536 536
                     }
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
         $em->getConfiguration()->setSQLLogger(null);
586 586
 
587 587
         $response = new StreamedResponse();
588
-        $response->setCallback(function () use ($app, $request) {
588
+        $response->setCallback(function() use ($app, $request) {
589 589
 
590 590
             // CSV種別を元に初期化.
591 591
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT);
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 
610 610
             // データ行の出力.
611 611
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
612
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) {
612
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) {
613 613
 
614 614
                 $Csvs = $csvService->getCsvs();
615 615
 
@@ -641,9 +641,9 @@  discard block
 block discarded – undo
641 641
         });
642 642
 
643 643
         $now = new \DateTime();
644
-        $filename = 'product_' . $now->format('YmdHis') . '.csv';
644
+        $filename = 'product_'.$now->format('YmdHis').'.csv';
645 645
         $response->headers->set('Content-Type', 'application/octet-stream');
646
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
646
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
647 647
         $response->send();
648 648
 
649 649
         return $response;
Please login to merge, or discard this patch.
src/Eccube/Controller/ShoppingController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
             $MailHistory = new MailHistory();
223 223
             $MailHistory
224
-                ->setSubject('[' . $app['eccube.repository.base_info']->get()->getShopName() . '] ' . $MailTemplate->getSubject())
224
+                ->setSubject('['.$app['eccube.repository.base_info']->get()->getShopName().'] '.$MailTemplate->getSubject())
225 225
                 ->setMailBody($body)
226 226
                 ->setMailTemplate($MailTemplate)
227 227
                 ->setSendDate(new \DateTime())
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
                     ->setTel03($data['customer_tel03'])
635 635
                     ->setZip01($data['customer_zip01'])
636 636
                     ->setZip02($data['customer_zip02'])
637
-                    ->setZipCode($data['customer_zip01'] . $data['customer_zip02'])
637
+                    ->setZipCode($data['customer_zip01'].$data['customer_zip02'])
638 638
                     ->setPref($pref)
639 639
                     ->setAddr01($data['customer_addr01'])
640 640
                     ->setAddr02($data['customer_addr02'])
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
                 ->setTel03($data['tel03'])
734 734
                 ->setZip01($data['zip01'])
735 735
                 ->setZip02($data['zip02'])
736
-                ->setZipCode($data['zip01'] . $data['zip02'])
736
+                ->setZipCode($data['zip01'].$data['zip02'])
737 737
                 ->setPref($data['pref'])
738 738
                 ->setAddr01($data['addr01'])
739 739
                 ->setAddr02($data['addr02']);
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
                 ->setTel03($data['tel03'])
753 753
                 ->setZip01($data['zip01'])
754 754
                 ->setZip02($data['zip02'])
755
-                ->setZipCode($data['zip01'] . $data['zip02'])
755
+                ->setZipCode($data['zip01'].$data['zip02'])
756 756
                 ->setPref($data['pref'])
757 757
                 ->setAddr01($data['addr01'])
758 758
                 ->setAddr02($data['addr02'])
@@ -1070,7 +1070,7 @@  discard block
 block discarded – undo
1070 1070
 
1071 1071
         $errors[] = $app['validator']->validateValue($data['customer_name02'], array(
1072 1072
             new Assert\NotBlank(),
1073
-            new Assert\Length(array('max' => $app['config']['name_len'], )),
1073
+            new Assert\Length(array('max' => $app['config']['name_len'],)),
1074 1074
             new Assert\Regex(array('pattern' => '/^[^\s ]+$/u', 'message' => 'form.type.name.firstname.nothasspace'))
1075 1075
         ));
1076 1076
 
Please login to merge, or discard this patch.
src/Eccube/Controller/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             ));
107 107
             $addCartForm = $builder->getForm();
108 108
 
109
-            if ($request->getMethod() === 'POST' && (string)$Product->getId() === $request->get('product_id')) {
109
+            if ($request->getMethod() === 'POST' && (string) $Product->getId() === $request->get('product_id')) {
110 110
                 $addCartForm->handleRequest($request);
111 111
 
112 112
                 if ($addCartForm->isValid()) {
Please login to merge, or discard this patch.
src/Eccube/Application/ApplicationTrait.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,32 +20,32 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function addSuccess($message, $namespace = 'front')
22 22
     {
23
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.success', $message);
23
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.success', $message);
24 24
     }
25 25
 
26 26
     public function addError($message, $namespace = 'front')
27 27
     {
28
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.error', $message);
28
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.error', $message);
29 29
     }
30 30
 
31 31
     public function addDanger($message, $namespace = 'front')
32 32
     {
33
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.danger', $message);
33
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.danger', $message);
34 34
     }
35 35
 
36 36
     public function addWarning($message, $namespace = 'front')
37 37
     {
38
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.warning', $message);
38
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.warning', $message);
39 39
     }
40 40
 
41 41
     public function addInfo($message, $namespace = 'front')
42 42
     {
43
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.info', $message);
43
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.info', $message);
44 44
     }
45 45
 
46 46
     public function addRequestError($message, $namespace = 'front')
47 47
     {
48
-        $this['session']->getFlashBag()->set('eccube.' . $namespace . '.request.error', $message);
48
+        $this['session']->getFlashBag()->set('eccube.'.$namespace.'.request.error', $message);
49 49
     }
50 50
 
51 51
     public function clearMessage()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         if (is_null($namespace)) {
65 65
             $this['session']->getFlashBag()->set('eccube.login.target.path', $targetPath);
66 66
         } else {
67
-            $this['session']->getFlashBag()->set('eccube.' . $namespace . '.login.target.path', $targetPath);
67
+            $this['session']->getFlashBag()->set('eccube.'.$namespace.'.login.target.path', $targetPath);
68 68
         }
69 69
     }
70 70
 
@@ -234,14 +234,14 @@  discard block
 block discarded – undo
234 234
         $eventName = $view;
235 235
         if ($this->isAdminRequest()) {
236 236
             // 管理画面の場合、event名に「Admin/」を付ける
237
-            $eventName = 'Admin/' . $view;
237
+            $eventName = 'Admin/'.$view;
238 238
         }
239
-        $this['monolog']->debug('Template Event Name : ' . $eventName);
239
+        $this['monolog']->debug('Template Event Name : '.$eventName);
240 240
 
241 241
         $this['eccube.event.dispatcher']->dispatch($eventName, $event);
242 242
 
243 243
         if ($response instanceof StreamedResponse) {
244
-            $response->setCallback(function () use ($twig, $view, $parameters) {
244
+            $response->setCallback(function() use ($twig, $view, $parameters) {
245 245
                 $twig->display($view, $parameters);
246 246
             });
247 247
         } else {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Customer/CustomerEditController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                         ->setCompanyName($Customer->getCompanyName())
89 89
                         ->setZip01($Customer->getZip01())
90 90
                         ->setZip02($Customer->getZip02())
91
-                        ->setZipcode($Customer->getZip01() . $Customer->getZip02())
91
+                        ->setZipcode($Customer->getZip01().$Customer->getZip02())
92 92
                         ->setPref($Customer->getPref())
93 93
                         ->setAddr01($Customer->getAddr01())
94 94
                         ->setAddr02($Customer->getAddr02())
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/BlockController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
113 113
                 // ファイル生成・更新
114 114
                 $tplDir = $app['config']['block_realdir'];
115 115
 
116
-                $filePath = $tplDir . '/' . $Block->getFileName() . '.twig';
116
+                $filePath = $tplDir.'/'.$Block->getFileName().'.twig';
117 117
 
118 118
                 $fs = new Filesystem();
119 119
                 $fs->dumpFile($filePath, $form->get('block_html')->getData());
120 120
                 // 更新でファイル名を変更した場合、以前のファイルを削除
121 121
                 if ($Block->getFileName() != $previous_filename && !is_null($previous_filename)) {
122
-                    $oldFilePath = $tplDir . '/' . $previous_filename . '.twig';
122
+                    $oldFilePath = $tplDir.'/'.$previous_filename.'.twig';
123 123
                     if ($fs->exists($oldFilePath)) {
124 124
                         $fs->remove($oldFilePath);
125 125
                     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         // テンプレートが変更されていた場合、DBからはブロック削除されるがtwigファイルは残る
172 172
         if ($Block->getDeletableFlg() > 0) {
173 173
             $tplDir = $app['config']['block_realdir'];
174
-            $file = $tplDir . '/' . $Block->getFileName() . '.twig';
174
+            $file = $tplDir.'/'.$Block->getFileName().'.twig';
175 175
             $fs = new Filesystem();
176 176
             if ($fs->exists($file)) {
177 177
                 $fs->remove($file);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                     foreach ($data as $row) {
107 107
 
108 108
                         if ($headerSize != count($row)) {
109
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
109
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
110 110
                             return $this->render($app, $form, $headers, $this->productTwig);
111 111
                         }
112 112
 
@@ -117,33 +117,33 @@  discard block
 block discarded – undo
117 117
                             if (is_numeric($row['商品ID'])) {
118 118
                                 $Product = $app['eccube.repository.product']->find($row['商品ID']);
119 119
                                 if (!$Product) {
120
-                                    $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
120
+                                    $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
121 121
                                     return $this->render($app, $form, $headers, $this->productTwig);
122 122
                                 }
123 123
                             } else {
124
-                                $this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。');
124
+                                $this->addErrors(($data->key() + 1).'行目の商品IDが存在しません。');
125 125
                                 return $this->render($app, $form, $headers, $this->productTwig);
126 126
                             }
127 127
 
128 128
                         }
129 129
 
130 130
                         if ($row['公開ステータス(ID)'] == '') {
131
-                            $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が設定されていません。');
131
+                            $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が設定されていません。');
132 132
                         } else {
133 133
                             if (is_numeric($row['公開ステータス(ID)'])) {
134 134
                                 $Disp = $app['eccube.repository.master.disp']->find($row['公開ステータス(ID)']);
135 135
                                 if (!$Disp) {
136
-                                    $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
136
+                                    $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
137 137
                                 } else {
138 138
                                     $Product->setStatus($Disp);
139 139
                                 }
140 140
                             } else {
141
-                                $this->addErrors(($data->key() + 1) . '行目の公開ステータス(ID)が存在しません。');
141
+                                $this->addErrors(($data->key() + 1).'行目の公開ステータス(ID)が存在しません。');
142 142
                             }
143 143
                         }
144 144
 
145 145
                         if (Str::isBlank($row['商品名'])) {
146
-                            $this->addErrors(($data->key() + 1) . '行目の商品名が設定されていません。');
146
+                            $this->addErrors(($data->key() + 1).'行目の商品名が設定されていません。');
147 147
                             return $this->render($app, $form, $headers, $this->productTwig);
148 148
                         } else {
149 149
                             $Product->setName(Str::trimAll($row['商品名']));
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
                         if ($row['商品削除フラグ'] == '') {
183 183
                             $Product->setDelFlg(Constant::DISABLED);
184 184
                         } else {
185
-                            if ($row['商品削除フラグ'] == (string)Constant::DISABLED || $row['商品削除フラグ'] == (string)Constant::ENABLED) {
185
+                            if ($row['商品削除フラグ'] == (string) Constant::DISABLED || $row['商品削除フラグ'] == (string) Constant::ENABLED) {
186 186
                                 $Product->setDelFlg($row['商品削除フラグ']);
187 187
                             } else {
188
-                                $this->addErrors(($data->key() + 1) . '行目の商品削除フラグが設定されていません。');
188
+                                $this->addErrors(($data->key() + 1).'行目の商品削除フラグが設定されていません。');
189 189
                                 return $this->render($app, $form, $headers, $this->productTwig);
190 190
                             }
191 191
                         }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                                     if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
213 213
                                         $ProductClassOrg->setDeliveryFee($deliveryFee);
214 214
                                     } else {
215
-                                        $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
215
+                                        $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
216 216
                                     }
217 217
                                 }
218 218
                             }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                             if ($row['規格分類1(ID)'] != '') {
221 221
 
222 222
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
223
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
223
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
224 224
                                 } else {
225 225
                                     // 商品規格あり
226 226
                                     // 企画分類あり商品を作成
@@ -235,30 +235,30 @@  discard block
 block discarded – undo
235 235
                                     if (is_numeric($row['規格分類1(ID)'])) {
236 236
                                         $ClassCategory1 = $app['eccube.repository.class_category']->find($row['規格分類1(ID)']);
237 237
                                         if (!$ClassCategory1) {
238
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
238
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
239 239
                                         } else {
240 240
                                             $ProductClass->setClassCategory1($ClassCategory1);
241 241
                                         }
242 242
                                     } else {
243
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
243
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
244 244
                                     }
245 245
 
246 246
                                     if ($row['規格分類2(ID)'] != '') {
247 247
                                         if (is_numeric($row['規格分類2(ID)'])) {
248 248
                                             $ClassCategory2 = $app['eccube.repository.class_category']->find($row['規格分類2(ID)']);
249 249
                                             if (!$ClassCategory2) {
250
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
250
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
251 251
                                             } else {
252 252
                                                 if ($ClassCategory1 &&
253 253
                                                     ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
254 254
                                                 ) {
255
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
255
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
256 256
                                                 } else {
257 257
                                                     $ProductClass->setClassCategory2($ClassCategory2);
258 258
                                                 }
259 259
                                             }
260 260
                                         } else {
261
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
261
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
262 262
                                         }
263 263
                                     }
264 264
                                     $ProductClass->setProductStock($ProductStock);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
                             } else {
272 272
                                 if ($row['規格分類2(ID)'] != '') {
273
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
273
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
274 274
                                 }
275 275
                             }
276 276
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                                             if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
299 299
                                                 $pc->setDeliveryFee($deliveryFee);
300 300
                                             } else {
301
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
301
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
302 302
                                             }
303 303
                                         }
304 304
                                     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
                                 }
321 321
 
322 322
                                 if ($row['規格分類1(ID)'] == $row['規格分類2(ID)']) {
323
-                                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
323
+                                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)には同じ値を使用できません。');
324 324
                                 } else {
325 325
 
326 326
                                     // 必ず規格分類1がセットされている
@@ -329,36 +329,36 @@  discard block
 block discarded – undo
329 329
                                     if (is_numeric($classCategoryId1)) {
330 330
                                         $ClassCategory1 = $app['eccube.repository.class_category']->find($classCategoryId1);
331 331
                                         if (!$ClassCategory1) {
332
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
332
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
333 333
                                         }
334 334
                                     } else {
335
-                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
335
+                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
336 336
                                     }
337 337
 
338 338
                                     $ClassCategory2 = null;
339 339
                                     if ($row['規格分類2(ID)'] != '') {
340 340
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() == null) {
341
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)は設定できません。');
341
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)は設定できません。');
342 342
                                         } else {
343 343
                                             if (is_numeric($classCategoryId2)) {
344 344
                                                 $ClassCategory2 = $app['eccube.repository.class_category']->find($classCategoryId2);
345 345
                                                 if (!$ClassCategory2) {
346
-                                                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
346
+                                                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
347 347
                                                 } else {
348 348
                                                     if ($ClassCategory1 &&
349 349
                                                         ($ClassCategory1->getClassName()->getId() == $ClassCategory2->getClassName()->getId())
350 350
                                                     ) {
351
-                                                        $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
351
+                                                        $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)と規格分類2(ID)の規格名が同じです。');
352 352
                                                     }
353 353
                                                 }
354 354
                                             } else {
355
-                                                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
355
+                                                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
356 356
                                             }
357 357
 
358 358
                                         }
359 359
                                     } else {
360 360
                                         if ($pc->getClassCategory1() != null && $pc->getClassCategory2() != null) {
361
-                                            $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)に値を設定してください。');
361
+                                            $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)に値を設定してください。');
362 362
                                         }
363 363
                                     }
364 364
                                     $ProductClass = $this->createProductClass($row, $Product, $app, $data, $ClassCategory1, $ClassCategory2);
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                                             if (is_numeric($deliveryFee) && $deliveryFee >= 0) {
370 370
                                                 $ProductClass->setDeliveryFee($deliveryFee);
371 371
                                             } else {
372
-                                                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
372
+                                                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
373 373
                                             }
374 374
                                         }
375 375
                                     }
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
                     foreach ($data as $row) {
453 453
 
454 454
                         if ($headerSize != count($row)) {
455
-                            $this->addErrors(($data->key() + 1) . '行目のCSVフォーマットが一致しません。');
455
+                            $this->addErrors(($data->key() + 1).'行目のCSVフォーマットが一致しません。');
456 456
                             return $this->render($app, $form, $headers, $this->categoryTwig);
457 457
                         }
458 458
 
@@ -460,23 +460,23 @@  discard block
 block discarded – undo
460 460
                             $Category = new Category();
461 461
                         } else {
462 462
                             if (!is_numeric($row['カテゴリID'])) {
463
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
463
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
464 464
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
465 465
                             }
466 466
                             $Category = $app['eccube.repository.category']->find($row['カテゴリID']);
467 467
                             if (!$Category) {
468
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDが存在しません。');
468
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDが存在しません。');
469 469
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
470 470
                             }
471 471
                             if ($row['カテゴリID'] == $row['親カテゴリID']) {
472
-                                $this->addErrors(($data->key() + 1) . '行目のカテゴリIDと親カテゴリIDが同じです。');
472
+                                $this->addErrors(($data->key() + 1).'行目のカテゴリIDと親カテゴリIDが同じです。');
473 473
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
474 474
                             }
475 475
 
476 476
                         }
477 477
 
478 478
                         if (Str::isBlank($row['カテゴリ名'])) {
479
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリ名が設定されていません。');
479
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリ名が設定されていません。');
480 480
                             return $this->render($app, $form, $headers, $this->categoryTwig);
481 481
                         } else {
482 482
                             $Category->setName(Str::trimAll($row['カテゴリ名']));
@@ -485,13 +485,13 @@  discard block
 block discarded – undo
485 485
                         if ($row['親カテゴリID'] != '') {
486 486
 
487 487
                             if (!is_numeric($row['親カテゴリID'])) {
488
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
488
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
489 489
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
490 490
                             }
491 491
 
492 492
                             $ParentCategory = $app['eccube.repository.category']->find($row['親カテゴリID']);
493 493
                             if (!$ParentCategory) {
494
-                                $this->addErrors(($data->key() + 1) . '行目の親カテゴリIDが存在しません。');
494
+                                $this->addErrors(($data->key() + 1).'行目の親カテゴリIDが存在しません。');
495 495
                                 return $this->render($app, $form, $headers, $this->categoryTwig);
496 496
                             }
497 497
 
@@ -507,14 +507,14 @@  discard block
 block discarded – undo
507 507
                         }
508 508
 
509 509
                         if ($app['config']['category_nest_level'] < $Category->getLevel()) {
510
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリが最大レベルを超えているため設定できません。');
510
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリが最大レベルを超えているため設定できません。');
511 511
                             return $this->render($app, $form, $headers, $this->categoryTwig);
512 512
                         }
513 513
 
514 514
                         $status = $app['eccube.repository.category']->save($Category);
515 515
 
516 516
                         if (!$status) {
517
-                            $this->addErrors(($data->key() + 1) . '行目のカテゴリが設定できません。');
517
+                            $this->addErrors(($data->key() + 1).'行目のカテゴリが設定できません。');
518 518
                         }
519 519
 
520 520
                         if ($this->hasErrors()) {
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
             throw new NotFoundHttpException();
558 558
         }
559 559
 
560
-        $response->setCallback(function () use ($app, $request, $headers) {
560
+        $response->setCallback(function() use ($app, $request, $headers) {
561 561
 
562 562
             // ヘッダ行の出力
563 563
             $row = array();
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
         });
573 573
 
574 574
         $response->headers->set('Content-Type', 'application/octet-stream');
575
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
575
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
576 576
         $response->send();
577 577
 
578 578
         return $response;
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         if (!empty($this->fileName)) {
596 596
             try {
597 597
                 $fs = new Filesystem();
598
-                $fs->remove($app['config']['csv_temp_realdir'] . '/' . $this->fileName);
598
+                $fs->remove($app['config']['csv_temp_realdir'].'/'.$this->fileName);
599 599
             } catch (\Exception $e) {
600 600
                 // エラーが発生しても無視する
601 601
             }
@@ -618,10 +618,10 @@  discard block
 block discarded – undo
618 618
     protected function getImportData($app, $formFile)
619 619
     {
620 620
         // アップロードされたCSVファイルを一時ディレクトリに保存
621
-        $this->fileName = 'upload_' . Str::random() . '.' . $formFile->getClientOriginalExtension();
621
+        $this->fileName = 'upload_'.Str::random().'.'.$formFile->getClientOriginalExtension();
622 622
         $formFile->move($app['config']['csv_temp_realdir'], $this->fileName);
623 623
 
624
-        $file = file_get_contents($app['config']['csv_temp_realdir'] . '/' . $this->fileName);
624
+        $file = file_get_contents($app['config']['csv_temp_realdir'].'/'.$this->fileName);
625 625
         // アップロードされたファイルがUTF-8以外は文字コード変換を行う
626 626
         $encode = Str::characterEncoding(substr($file, 0, 6));
627 627
         if ($encode != 'UTF-8') {
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
                 if (is_numeric($category)) {
701 701
                     $Category = $app['eccube.repository.category']->find($category);
702 702
                     if (!$Category) {
703
-                        $this->addErrors(($data->key() + 1) . '行目の商品カテゴリ(ID)「' . $category . '」が存在しません。');
703
+                        $this->addErrors(($data->key() + 1).'行目の商品カテゴリ(ID)「'.$category.'」が存在しません。');
704 704
                     } else {
705 705
                         $ProductCategory = new ProductCategory();
706 706
                         $ProductCategory->setProductId($Product->getId());
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
                         $this->em->persist($ProductCategory);
714 714
                     }
715 715
                 } else {
716
-                    $this->addErrors(($data->key() + 1) . '行目の商品カテゴリ(ID)「' . $category . '」が存在しません。');
716
+                    $this->addErrors(($data->key() + 1).'行目の商品カテゴリ(ID)「'.$category.'」が存在しません。');
717 717
                 }
718 718
             }
719 719
 
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
                 }
763 763
             }
764 764
             if (!$Tag) {
765
-                $this->addErrors(($data->key() + 1) . '行目のタグ(ID)「' . $tag_id . '」が存在しません。');
765
+                $this->addErrors(($data->key() + 1).'行目のタグ(ID)「'.$tag_id.'」が存在しません。');
766 766
             }
767 767
         }
768 768
     }
@@ -780,17 +780,17 @@  discard block
 block discarded – undo
780 780
 
781 781
 
782 782
         if ($row['商品種別(ID)'] == '') {
783
-            $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。');
783
+            $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が設定されていません。');
784 784
         } else {
785 785
             if (is_numeric($row['商品種別(ID)'])) {
786 786
                 $ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']);
787 787
                 if (!$ProductType) {
788
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
788
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
789 789
                 } else {
790 790
                     $ProductClass->setProductType($ProductType);
791 791
                 }
792 792
             } else {
793
-                $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
793
+                $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
794 794
             }
795 795
         }
796 796
 
@@ -801,12 +801,12 @@  discard block
 block discarded – undo
801 801
             if (is_numeric($row['発送日目安(ID)'])) {
802 802
                 $DeliveryDate = $app['eccube.repository.delivery_date']->find($row['発送日目安(ID)']);
803 803
                 if (!$DeliveryDate) {
804
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
804
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
805 805
                 } else {
806 806
                     $ProductClass->setDeliveryDate($DeliveryDate);
807 807
                 }
808 808
             } else {
809
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
809
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
810 810
             }
811 811
         }
812 812
 
@@ -817,19 +817,19 @@  discard block
 block discarded – undo
817 817
         }
818 818
 
819 819
         if ($row['在庫数無制限フラグ'] == '') {
820
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
820
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
821 821
         } else {
822 822
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
823 823
                 $ProductClass->setStockUnlimited(Constant::DISABLED);
824 824
                 // 在庫数が設定されていなければエラー
825 825
                 if ($row['在庫数'] == '') {
826
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
826
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
827 827
                 } else {
828 828
                     $stock = str_replace(',', '', $row['在庫数']);
829 829
                     if (is_numeric($stock) && $stock >= 0) {
830 830
                         $ProductClass->setStock($stock);
831 831
                     } else {
832
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
832
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
833 833
                     }
834 834
                 }
835 835
 
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
                 $ProductClass->setStockUnlimited(Constant::ENABLED);
838 838
                 $ProductClass->setStock(null);
839 839
             } else {
840
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
840
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
841 841
             }
842 842
         }
843 843
 
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
             if (is_numeric($saleLimit) && $saleLimit >= 0) {
847 847
                 $ProductClass->setSaleLimit($saleLimit);
848 848
             } else {
849
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
849
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
850 850
             }
851 851
         }
852 852
 
@@ -855,18 +855,18 @@  discard block
 block discarded – undo
855 855
             if (is_numeric($price01) && $price01 >= 0) {
856 856
                 $ProductClass->setPrice01($price01);
857 857
             } else {
858
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
858
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
859 859
             }
860 860
         }
861 861
 
862 862
         if ($row['販売価格'] == '') {
863
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
863
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
864 864
         } else {
865 865
             $price02 = str_replace(',', '', $row['販売価格']);
866 866
             if (is_numeric($price02) && $price02 >= 0) {
867 867
                 $ProductClass->setPrice02($price02);
868 868
             } else {
869
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
869
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
870 870
             }
871 871
         }
872 872
 
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
             if (is_numeric($delivery_fee) && $delivery_fee >= 0) {
876 876
                 $ProductClass->setDeliveryFee($delivery_fee);
877 877
             } else {
878
-                $this->addErrors(($data->key() + 1) . '行目の送料は0以上の数値を設定してください。');
878
+                $this->addErrors(($data->key() + 1).'行目の送料は0以上の数値を設定してください。');
879 879
             }
880 880
         }
881 881
 
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
             if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
886 886
                 $ProductClass->setDelFlg($row['商品規格削除フラグ']);
887 887
             } else {
888
-                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
888
+                $this->addErrors(($data->key() + 1).'行目の商品規格削除フラグが設定されていません。');
889 889
             }
890 890
         }
891 891
 
@@ -918,17 +918,17 @@  discard block
 block discarded – undo
918 918
         $ProductClass->setProduct($Product);
919 919
 
920 920
         if ($row['商品種別(ID)'] == '') {
921
-            $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。');
921
+            $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が設定されていません。');
922 922
         } else {
923 923
             if (is_numeric($row['商品種別(ID)'])) {
924 924
                 $ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']);
925 925
                 if (!$ProductType) {
926
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
926
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
927 927
                 } else {
928 928
                     $ProductClass->setProductType($ProductType);
929 929
                 }
930 930
             } else {
931
-                $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
931
+                $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
932 932
             }
933 933
         }
934 934
 
@@ -937,12 +937,12 @@  discard block
 block discarded – undo
937 937
             if (is_numeric($row['規格分類1(ID)'])) {
938 938
                 $ClassCategory = $app['eccube.repository.class_category']->find($row['規格分類1(ID)']);
939 939
                 if (!$ClassCategory) {
940
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
940
+                    $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
941 941
                 } else {
942 942
                     $ProductClass->setClassCategory1($ClassCategory);
943 943
                 }
944 944
             } else {
945
-                $this->addErrors(($data->key() + 1) . '行目の規格分類1(ID)が存在しません。');
945
+                $this->addErrors(($data->key() + 1).'行目の規格分類1(ID)が存在しません。');
946 946
             }
947 947
         }
948 948
 
@@ -950,12 +950,12 @@  discard block
 block discarded – undo
950 950
             if (is_numeric($row['規格分類2(ID)'])) {
951 951
                 $ClassCategory = $app['eccube.repository.class_category']->find($row['規格分類2(ID)']);
952 952
                 if (!$ClassCategory) {
953
-                    $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
953
+                    $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
954 954
                 } else {
955 955
                     $ProductClass->setClassCategory2($ClassCategory);
956 956
                 }
957 957
             } else {
958
-                $this->addErrors(($data->key() + 1) . '行目の規格分類2(ID)が存在しません。');
958
+                $this->addErrors(($data->key() + 1).'行目の規格分類2(ID)が存在しません。');
959 959
             }
960 960
         }
961 961
 
@@ -963,12 +963,12 @@  discard block
 block discarded – undo
963 963
             if (is_numeric($row['発送日目安(ID)'])) {
964 964
                 $DeliveryDate = $app['eccube.repository.delivery_date']->find($row['発送日目安(ID)']);
965 965
                 if (!$DeliveryDate) {
966
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
966
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
967 967
                 } else {
968 968
                     $ProductClass->setDeliveryDate($DeliveryDate);
969 969
                 }
970 970
             } else {
971
-                $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
971
+                $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
972 972
             }
973 973
         }
974 974
 
@@ -979,19 +979,19 @@  discard block
 block discarded – undo
979 979
         }
980 980
 
981 981
         if ($row['在庫数無制限フラグ'] == '') {
982
-            $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
982
+            $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
983 983
         } else {
984 984
             if ($row['在庫数無制限フラグ'] == (string) Constant::DISABLED) {
985 985
                 $ProductClass->setStockUnlimited(Constant::DISABLED);
986 986
                 // 在庫数が設定されていなければエラー
987 987
                 if ($row['在庫数'] == '') {
988
-                    $this->addErrors(($data->key() + 1) . '行目の在庫数が設定されていません。');
988
+                    $this->addErrors(($data->key() + 1).'行目の在庫数が設定されていません。');
989 989
                 } else {
990 990
                     $stock = str_replace(',', '', $row['在庫数']);
991 991
                     if (is_numeric($stock) && $stock >= 0) {
992 992
                         $ProductClass->setStock($row['在庫数']);
993 993
                     } else {
994
-                        $this->addErrors(($data->key() + 1) . '行目の在庫数は0以上の数値を設定してください。');
994
+                        $this->addErrors(($data->key() + 1).'行目の在庫数は0以上の数値を設定してください。');
995 995
                     }
996 996
                 }
997 997
 
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
                 $ProductClass->setStockUnlimited(Constant::ENABLED);
1000 1000
                 $ProductClass->setStock(null);
1001 1001
             } else {
1002
-                $this->addErrors(($data->key() + 1) . '行目の在庫数無制限フラグが設定されていません。');
1002
+                $this->addErrors(($data->key() + 1).'行目の在庫数無制限フラグが設定されていません。');
1003 1003
             }
1004 1004
         }
1005 1005
 
@@ -1008,7 +1008,7 @@  discard block
 block discarded – undo
1008 1008
             if (is_numeric($saleLimit) && $saleLimit >= 0) {
1009 1009
                 $ProductClass->setSaleLimit($saleLimit);
1010 1010
             } else {
1011
-                $this->addErrors(($data->key() + 1) . '行目の販売制限数は0以上の数値を設定してください。');
1011
+                $this->addErrors(($data->key() + 1).'行目の販売制限数は0以上の数値を設定してください。');
1012 1012
             }
1013 1013
         }
1014 1014
 
@@ -1017,18 +1017,18 @@  discard block
 block discarded – undo
1017 1017
             if (is_numeric($price01) && $price01 >= 0) {
1018 1018
                 $ProductClass->setPrice01($price01);
1019 1019
             } else {
1020
-                $this->addErrors(($data->key() + 1) . '行目の通常価格は0以上の数値を設定してください。');
1020
+                $this->addErrors(($data->key() + 1).'行目の通常価格は0以上の数値を設定してください。');
1021 1021
             }
1022 1022
         }
1023 1023
 
1024 1024
         if ($row['販売価格'] == '') {
1025
-            $this->addErrors(($data->key() + 1) . '行目の販売価格が設定されていません。');
1025
+            $this->addErrors(($data->key() + 1).'行目の販売価格が設定されていません。');
1026 1026
         } else {
1027 1027
             $price02 = str_replace(',', '', $row['販売価格']);
1028 1028
             if (is_numeric($price02) && $price02 >= 0) {
1029 1029
                 $ProductClass->setPrice02($price02);
1030 1030
             } else {
1031
-                $this->addErrors(($data->key() + 1) . '行目の販売価格は0以上の数値を設定してください。');
1031
+                $this->addErrors(($data->key() + 1).'行目の販売価格は0以上の数値を設定してください。');
1032 1032
             }
1033 1033
         }
1034 1034
 
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
             if ($row['商品規格削除フラグ'] == (string) Constant::DISABLED || $row['商品規格削除フラグ'] == (string) Constant::ENABLED) {
1039 1039
                 $ProductClass->setDelFlg($row['商品規格削除フラグ']);
1040 1040
             } else {
1041
-                $this->addErrors(($data->key() + 1) . '行目の商品規格削除フラグが設定されていません。');
1041
+                $this->addErrors(($data->key() + 1).'行目の商品規格削除フラグが設定されていません。');
1042 1042
             }
1043 1043
         }
1044 1044
 
Please login to merge, or discard this patch.