Failed Conditions
Pull Request — experimental/3.1 (#2561)
by k-yamamura
44:34 queued 05:21
created
src/Eccube/Doctrine/ORM/Tools/Pagination/WhereInWalker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $pathType = PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION;
90 90
         }
91 91
 
92
-        $pathExpression       = new PathExpression(PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName);
92
+        $pathExpression       = new PathExpression(PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName);
93 93
         $pathExpression->type = $pathType;
94 94
 
95 95
         $count = $this->_getQuery()->getHint(self::HINT_PAGINATOR_ID_COUNT);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 array($pathExpression)
101 101
             );
102 102
             $expression = new InExpression($arithmeticExpression);
103
-            $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS);
103
+            $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS);
104 104
 
105 105
         } else {
106 106
             $expression = new NullComparisonExpression($pathExpression);
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/CountWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         }
70 70
 
71 71
         $pathExpression = new PathExpression(
72
-            PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
72
+            PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
73 73
             $identifierFieldName
74 74
         );
75 75
         $pathExpression->type = $pathType;
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryWalker.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         );
94 94
 
95 95
         $pathExpression = new PathExpression(
96
-            PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION,
96
+            PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION,
97 97
             $rootAlias,
98 98
             $identifier
99 99
         );
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
 
105 105
         if (isset($AST->orderByClause)) {
106 106
             foreach ($AST->orderByClause->orderByItems as $item) {
107
-                if ( ! $item->expression instanceof PathExpression) {
107
+                if (!$item->expression instanceof PathExpression) {
108 108
                     continue;
109 109
                 }
110 110
                 
111 111
                 $AST->selectClause->selectExpressions[] = new SelectExpression(
112 112
                     $this->createSelectExpressionItem($item->expression),
113
-                    '_dctrn_ord' . $this->_aliasCounter++
113
+                    '_dctrn_ord'.$this->_aliasCounter++
114 114
                 );
115 115
             }
116 116
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     && isset($queryComponents[$expression->identificationVariable])) {
146 146
                     $queryComponent = $queryComponents[$expression->identificationVariable];
147 147
                     if (isset($queryComponent['parent'])
148
-                        && $queryComponent['relation']['type'] & ClassMetadataInfo::TO_MANY) {
148
+                        && $queryComponent['relation']['type']&ClassMetadataInfo::TO_MANY) {
149 149
                         throw new \RuntimeException("Cannot select distinct identifiers from query with LIMIT and ORDER BY on a column from a fetch joined to-many association. Use output walkers.");
150 150
                     }
151 151
                 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 
21 21
 use Doctrine\DBAL\Types\Type;
22 22
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
23
-use Doctrine\ORM\ORMException;
24 23
 use Doctrine\ORM\Query;
25 24
 use Doctrine\ORM\Query\AST\Functions\IdentityFunction;
26 25
 use Doctrine\ORM\Query\AST\PathExpression;
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/RowNumberOverFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
      */
45 45
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
46 46
     {
47
-        return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause(
47
+        return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause(
48 48
             $this->orderByClause
49
-        )) . ')';
49
+        )).')';
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@  discard block
 block discarded – undo
209 209
         $sqlIdentifier = $this->getSQLIdentifier($AST);
210 210
 
211 211
         if ($hasOrderBy) {
212
-            $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlIdentifier);
213
-            $sqlIdentifier[] = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum';
212
+            $orderGroupBy = ' GROUP BY '.implode(', ', $sqlIdentifier);
213
+            $sqlIdentifier[] = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum';
214 214
         }
215 215
 
216 216
         // Build the counter query
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         );
222 222
 
223 223
         if ($hasOrderBy) {
224
-            $sql .= $orderGroupBy . $outerOrderBy;
224
+            $sql .= $orderGroupBy.$outerOrderBy;
225 225
         }
226 226
 
227 227
         // Apply the limit and offset.
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     {
369 369
         // If the sql statement has an order by clause, we need to wrap it in a new select distinct
370 370
         // statement
371
-        if (! $orderByClause instanceof OrderByClause) {
371
+        if (!$orderByClause instanceof OrderByClause) {
372 372
             return $sql;
373 373
         }
374 374
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             = array();
405 405
 
406 406
         // Generate DQL alias -> SQL table alias mapping
407
-        foreach(array_keys($this->rsm->aliasMap) as $dqlAlias) {
407
+        foreach (array_keys($this->rsm->aliasMap) as $dqlAlias) {
408 408
             $dqlAliasToClassMap[$dqlAlias] = $class = $this->queryComponents[$dqlAlias]['metadata'];
409 409
             $dqlAliasToSqlTableAliasMap[$dqlAlias] = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
410 410
         }
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
         $fieldSearchPattern = '/(?<![a-z0-9_])%s\.%s(?![a-z0-9_])/i';
414 414
 
415 415
         // Generate search patterns for each field's path expression in the order by clause
416
-        foreach($this->rsm->fieldMappings as $fieldAlias => $fieldName) {
416
+        foreach ($this->rsm->fieldMappings as $fieldAlias => $fieldName) {
417 417
             $dqlAliasForFieldAlias = $this->rsm->columnOwnerMap[$fieldAlias];
418 418
             $class = $dqlAliasToClassMap[$dqlAliasForFieldAlias];
419 419
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
             $replacements[] = $fieldAlias;
450 450
         }
451 451
 
452
-        foreach($orderByClause->orderByItems as $orderByItem) {
452
+        foreach ($orderByClause->orderByItems as $orderByItem) {
453 453
             // Walk order by item to get string representation of it
454 454
             $orderByItemString = $this->walkOrderByItem($orderByItem);
455 455
 
Please login to merge, or discard this patch.
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -18,19 +18,10 @@
 block discarded – undo
18 18
 use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
19 19
 use Doctrine\DBAL\Platforms\SQLAnywherePlatform;
20 20
 use Doctrine\DBAL\Platforms\SQLServerPlatform;
21
-use Doctrine\ORM\Query\AST\ArithmeticExpression;
22
-use Doctrine\ORM\Query\AST\ArithmeticFactor;
23
-use Doctrine\ORM\Query\AST\ArithmeticTerm;
24
-use Doctrine\ORM\Query\AST\Literal;
25 21
 use Doctrine\ORM\Query\AST\OrderByClause;
26
-use Doctrine\ORM\Query\AST\OrderByItem;
27 22
 use Doctrine\ORM\Query\AST\PartialObjectExpression;
28
-use Doctrine\ORM\Query\AST\PathExpression;
29 23
 use Doctrine\ORM\Query\AST\SelectExpression;
30 24
 use Doctrine\ORM\Query\AST\SelectStatement;
31
-use Doctrine\ORM\Query\AST\SimpleArithmeticExpression;
32
-use Doctrine\ORM\Query\Expr\OrderBy;
33
-use Doctrine\ORM\Query\Expr\Select;
34 25
 use Doctrine\ORM\Query\SqlWalker;
35 26
 
36 27
 /**
Please login to merge, or discard this patch.
src/Eccube/Command/ConfigCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             }
92 92
         }
93 93
 
94
-        $recursive = function ($config, $space = '    ') use (&$recursive, $output) {
94
+        $recursive = function($config, $space = '    ') use (&$recursive, $output) {
95 95
             foreach ($config as $key => $item) {
96 96
                 if (is_array($item)) {
97 97
                     $space = '    ';
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductController.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -792,6 +792,7 @@
 block discarded – undo
792 792
      * ProductCategory作成
793 793
      * @param \Eccube\Entity\Product $Product
794 794
      * @param \Eccube\Entity\Category $Category
795
+     * @param integer $count
795 796
      * @return \Eccube\Entity\ProductCategory
796 797
      */
797 798
     private function createProductCategory($Product, $Category, $count)
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
                     }
319 319
 
320 320
                     $extension = $image->getClientOriginalExtension();
321
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
321
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
322 322
                     $image->move($this->appConfig['image_temp_realdir'], $filename);
323 323
                     $files[] = $filename;
324 324
                 }
@@ -479,8 +479,8 @@  discard block
 block discarded – undo
479 479
                 $Categories = $form->get('Category')->getData();
480 480
                 $categoriesIdList = array();
481 481
                 foreach ($Categories as $Category) {
482
-                    foreach($Category->getPath() as $ParentCategory){
483
-                        if (!isset($categoriesIdList[$ParentCategory->getId()])){
482
+                    foreach ($Category->getPath() as $ParentCategory) {
483
+                        if (!isset($categoriesIdList[$ParentCategory->getId()])) {
484 484
                             $ProductCategory = $this->createProductCategory($Product, $ParentCategory, $count);
485 485
                             $this->entityManager->persist($ProductCategory);
486 486
                             $count++;
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
                             $categoriesIdList[$ParentCategory->getId()] = true;
490 490
                         }
491 491
                     }
492
-                    if (!isset($categoriesIdList[$Category->getId()])){
492
+                    if (!isset($categoriesIdList[$Category->getId()])) {
493 493
                         $ProductCategory = $this->createProductCategory($Product, $Category, $count);
494 494
                         $this->entityManager->persist($ProductCategory);
495 495
                         $count++;
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
                     $this->entityManager->persist($ProductImage);
512 512
 
513 513
                     // 移動
514
-                    $file = new File($this->appConfig['image_temp_realdir'] . '/' . $add_image);
514
+                    $file = new File($this->appConfig['image_temp_realdir'].'/'.$add_image);
515 515
                     $file->move($this->appConfig['image_save_realdir']);
516 516
                 }
517 517
 
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 
532 532
                     // 削除
533 533
                     $fs = new Filesystem();
534
-                    $fs->remove($this->appConfig['image_save_realdir'] . '/' . $delete_image);
534
+                    $fs->remove($this->appConfig['image_save_realdir'].'/'.$delete_image);
535 535
                 }
536 536
                 $this->entityManager->persist($Product);
537 537
                 $this->entityManager->flush();
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
                     foreach ($deleteImages as $deleteImage) {
667 667
                         try {
668 668
                             $fs = new Filesystem();
669
-                            $fs->remove($this->appConfig['image_save_realdir'] . '/' . $deleteImage);
669
+                            $fs->remove($this->appConfig['image_save_realdir'].'/'.$deleteImage);
670 670
                         } catch (\Exception $e) {
671 671
                             // エラーが発生しても無視する
672 672
                         }
@@ -741,10 +741,10 @@  discard block
 block discarded – undo
741 741
 
742 742
                     // 画像ファイルを新規作成
743 743
                     $extension = pathinfo($Image->getFileName(), PATHINFO_EXTENSION);
744
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
744
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
745 745
                     try {
746 746
                         $fs = new Filesystem();
747
-                        $fs->copy($this->appConfig['image_save_realdir'] . '/' . $Image->getFileName(), $this->appConfig['image_save_realdir'] . '/' . $filename);
747
+                        $fs->copy($this->appConfig['image_save_realdir'].'/'.$Image->getFileName(), $this->appConfig['image_save_realdir'].'/'.$filename);
748 748
                     } catch (\Exception $e) {
749 749
                         // エラーが発生しても無視する
750 750
                     }
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
         $em->getConfiguration()->setSQLLogger(null);
825 825
 
826 826
         $response = new StreamedResponse();
827
-        $response->setCallback(function () use ($app, $request) {
827
+        $response->setCallback(function() use ($app, $request) {
828 828
 
829 829
             // CSV種別を元に初期化.
830 830
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_PRODUCT);
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
             // データ行の出力.
865 865
             $this->csvExportService->setExportQueryBuilder($qb);
866 866
 
867
-            $this->csvExportService->exportData(function ($entity, CsvExportService $csvService) use ($app, $request) {
867
+            $this->csvExportService->exportData(function($entity, CsvExportService $csvService) use ($app, $request) {
868 868
                 $Csvs = $csvService->getCsvs();
869 869
 
870 870
                 /** @var $Product \Eccube\Entity\Product */
@@ -907,9 +907,9 @@  discard block
 block discarded – undo
907 907
         });
908 908
 
909 909
         $now = new \DateTime();
910
-        $filename = 'product_' . $now->format('YmdHis') . '.csv';
910
+        $filename = 'product_'.$now->format('YmdHis').'.csv';
911 911
         $response->headers->set('Content-Type', 'application/octet-stream');
912
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
912
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
913 913
         $response->send();
914 914
 
915 915
         log_info('商品CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1155,11 +1155,11 @@
 block discarded – undo
1155 1155
     }
1156 1156
     
1157 1157
         /**
1158
-     * ProductCategory作成
1159
-     * @param \Eccube\Entity\Product $Product
1160
-     * @param \Eccube\Entity\Category $Category
1161
-     * @return ProductCategory
1162
-     */
1158
+         * ProductCategory作成
1159
+         * @param \Eccube\Entity\Product $Product
1160
+         * @param \Eccube\Entity\Category $Category
1161
+         * @return ProductCategory
1162
+         */
1163 1163
     private function makeProductCategory($Product, $Category, $rank)
1164 1164
     {
1165 1165
         $ProductCategory = new ProductCategory();
Please login to merge, or discard this patch.
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -679,6 +679,8 @@  discard block
 block discarded – undo
679 679
     /**
680 680
      * 登録、更新時のエラー画面表示
681 681
      *
682
+     * @param Application $app
683
+     * @param \Symfony\Component\Form\FormInterface $form
682 684
      */
683 685
     protected function render($app, $form, $headers)
684 686
     {
@@ -710,6 +712,7 @@  discard block
 block discarded – undo
710 712
      * アップロードされたCSVファイルの行ごとの処理
711 713
      *
712 714
      * @param $formFile
715
+     * @param Application $app
713 716
      * @return CsvImportService
714 717
      */
715 718
     protected function getImportData($app, $formFile)
@@ -787,6 +790,8 @@  discard block
 block discarded – undo
787 790
 
788 791
     /**
789 792
      * 商品カテゴリの削除、登録
793
+     * @param Application $app
794
+     * @param CsvImportService $data
790 795
      */
791 796
     protected function createProductCategory($row, Product $Product, $app, $data)
792 797
     {
@@ -886,6 +891,8 @@  discard block
 block discarded – undo
886 891
 
887 892
     /**
888 893
      * 商品規格分類1、商品規格分類2がnullとなる商品規格情報を作成
894
+     * @param Application $app
895
+     * @param CsvImportService $data
889 896
      */
890 897
     protected function createProductClass($row, Product $Product, $app, $data, $ClassCategory1 = null, $ClassCategory2 = null)
891 898
     {
@@ -1027,6 +1034,8 @@  discard block
 block discarded – undo
1027 1034
 
1028 1035
     /**
1029 1036
      * 商品規格情報を更新
1037
+     * @param Application $app
1038
+     * @param CsvImportService $data
1030 1039
      */
1031 1040
     protected function updateProductClass($row, Product $Product, ProductClass $ProductClass, $app, $data)
1032 1041
     {
@@ -1173,6 +1182,7 @@  discard block
 block discarded – undo
1173 1182
     /**
1174 1183
      * 登録、更新時のエラー画面表示
1175 1184
      *
1185
+     * @param string $message
1176 1186
      */
1177 1187
     protected function addErrors($message)
1178 1188
     {
@@ -1247,6 +1257,7 @@  discard block
 block discarded – undo
1247 1257
      * ProductCategory作成
1248 1258
      * @param \Eccube\Entity\Product $Product
1249 1259
      * @param \Eccube\Entity\Category $Category
1260
+     * @param integer $rank
1250 1261
      * @return ProductCategory
1251 1262
      */
1252 1263
     private function makeProductCategory($Product, $Category, $rank)
Please login to merge, or discard this 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 (Str::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(Str::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 (Str::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(Str::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_' . Str::random() . '.' . $formFile->getClientOriginalExtension();
700
+        $this->fileName = 'upload_'.Str::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, $rank);
802 802
                             $this->entityManager->persist($ProductCategory);
803 803
                             $rank++;
@@ -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, $rank);
810 810
                         $rank++;
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
                 $ProductType = $this->productTypeRepository->find($row['商品種別(ID)']);
886 886
                 if (!$ProductType) {
887
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
887
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
888 888
                 } else {
889 889
                     $ProductClass->setProductType($ProductType);
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
                 $DeliveryDate = $this->deliveryDateRepository->find($row['発送日目安(ID)']);
902 902
                 if (!$DeliveryDate) {
903
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
903
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
904 904
                 } else {
905 905
                     $ProductClass->setDeliveryDate($DeliveryDate);
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
                 $ProductType = $this->productTypeRepository->find($row['商品種別(ID)']);
1014 1014
                 if (!$ProductType) {
1015
-                    $this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。');
1015
+                    $this->addErrors(($data->key() + 1).'行目の商品種別(ID)が存在しません。');
1016 1016
                 } else {
1017 1017
                     $ProductClass->setProductType($ProductType);
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
                 $DeliveryDate = $this->deliveryDateRepository->find($row['発送日目安(ID)']);
1054 1054
                 if (!$DeliveryDate) {
1055
-                    $this->addErrors(($data->key() + 1) . '行目の発送日目安(ID)が存在しません。');
1055
+                    $this->addErrors(($data->key() + 1).'行目の発送日目安(ID)が存在しません。');
1056 1056
                 } else {
1057 1057
                     $ProductClass->setDeliveryDate($DeliveryDate);
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.
src/Eccube/InstallApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         if (is_writable($logDir)) {
41 41
             if (file_exists($installLog) && !is_writable($installLog)) {
42
-                die($installLog . ' の書込権限を変更して下さい。');
42
+                die($installLog.' の書込権限を変更して下さい。');
43 43
             }
44 44
             // install step2 でログディレクトリに書き込み権限が付与されればログ出力を開始する.
45 45
             $app->register(new \Silex\Provider\MonologServiceProvider(), array(
Please login to merge, or discard this patch.