Failed Conditions
Pull Request — experimental/3.1 (#2159)
by Kentaro
88:02
created
src/Eccube/Controller/Admin/Customer/CustomerController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $em->getConfiguration()->setSQLLogger(null);
236 236
 
237 237
         $response = new StreamedResponse();
238
-        $response->setCallback(function () use ($app, $request) {
238
+        $response->setCallback(function() use ($app, $request) {
239 239
 
240 240
             // CSV種別を元に初期化.
241 241
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CUSTOMER);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
             // データ行の出力.
251 251
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
252
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
252
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
253 253
 
254 254
                 $Csvs = $csvService->getCsvs();
255 255
 
@@ -284,9 +284,9 @@  discard block
 block discarded – undo
284 284
         });
285 285
 
286 286
         $now = new \DateTime();
287
-        $filename = 'customer_' . $now->format('YmdHis') . '.csv';
287
+        $filename = 'customer_'.$now->format('YmdHis').'.csv';
288 288
         $response->headers->set('Content-Type', 'application/octet-stream');
289
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
289
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
290 290
 
291 291
         $response->send();
292 292
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/OrderController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
         $em->getConfiguration()->setSQLLogger(null);
241 241
 
242 242
         $response = new StreamedResponse();
243
-        $response->setCallback(function () use ($app, $request) {
243
+        $response->setCallback(function() use ($app, $request) {
244 244
 
245 245
             // CSV種別を元に初期化.
246 246
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_ORDER);
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
             // データ行の出力.
256 256
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
257
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
257
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
258 258
 
259 259
                 $Csvs = $csvService->getCsvs();
260 260
 
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
         });
296 296
 
297 297
         $now = new \DateTime();
298
-        $filename = 'order_' . $now->format('YmdHis') . '.csv';
298
+        $filename = 'order_'.$now->format('YmdHis').'.csv';
299 299
         $response->headers->set('Content-Type', 'application/octet-stream');
300
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
300
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
301 301
         $response->send();
302 302
 
303 303
         log_info('受注CSV出力ファイル名', array($filename));
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
         $em->getConfiguration()->setSQLLogger(null);
323 323
 
324 324
         $response = new StreamedResponse();
325
-        $response->setCallback(function () use ($app, $request) {
325
+        $response->setCallback(function() use ($app, $request) {
326 326
 
327 327
             // CSV種別を元に初期化.
328 328
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_SHIPPING);
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
             // データ行の出力.
338 338
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
339
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
339
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
340 340
 
341 341
                 $Csvs = $csvService->getCsvs();
342 342
 
@@ -386,9 +386,9 @@  discard block
 block discarded – undo
386 386
         });
387 387
 
388 388
         $now = new \DateTime();
389
-        $filename = 'shipping_' . $now->format('YmdHis') . '.csv';
389
+        $filename = 'shipping_'.$now->format('YmdHis').'.csv';
390 390
         $response->headers->set('Content-Type', 'application/octet-stream');
391
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
391
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
392 392
         $response->send();
393 393
 
394 394
         log_info('配送CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CategoryController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $em->getConfiguration()->setSQLLogger(null);
206 206
 
207 207
         $response = new StreamedResponse();
208
-        $response->setCallback(function () use ($app, $request) {
208
+        $response->setCallback(function() use ($app, $request) {
209 209
 
210 210
             // CSV種別を元に初期化.
211 211
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_CATEGORY);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
             // データ行の出力.
221 221
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
222
-            $app['eccube.service.csv.export']->exportData(function ($entity, $csvService) use ($app, $request) {
222
+            $app['eccube.service.csv.export']->exportData(function($entity, $csvService) use ($app, $request) {
223 223
 
224 224
                 $Csvs = $csvService->getCsvs();
225 225
 
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
         });
253 253
 
254 254
         $now = new \DateTime();
255
-        $filename = 'category_' . $now->format('YmdHis') . '.csv';
255
+        $filename = 'category_'.$now->format('YmdHis').'.csv';
256 256
         $response->headers->set('Content-Type', 'application/octet-stream');
257
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
257
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
258 258
         $response->send();
259 259
 
260 260
         log_info('カテゴリCSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Repository/CustomerRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,9 +153,9 @@  discard block
 block discarded – undo
153 153
             $qb
154 154
                 ->andWhere('c.id = :customer_id OR CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email')
155 155
                 ->setParameter('customer_id', $id)
156
-                ->setParameter('name', '%' . $clean_key_multi . '%')
157
-                ->setParameter('kana', '%' . $clean_key_multi . '%')
158
-                ->setParameter('email', '%' . $clean_key_multi . '%');
156
+                ->setParameter('name', '%'.$clean_key_multi.'%')
157
+                ->setParameter('kana', '%'.$clean_key_multi.'%')
158
+                ->setParameter('email', '%'.$clean_key_multi.'%');
159 159
         }
160 160
 
161 161
         // Pref
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) {
206 206
             $qb
207 207
                 ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel')
208
-                ->setParameter('tel', '%' . $searchData['tel'] . '%');
208
+                ->setParameter('tel', '%'.$searchData['tel'].'%');
209 209
         }
210 210
 
211 211
         // buy_total
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 ->leftJoin('c.Orders', 'o')
300 300
                 ->leftJoin('o.OrderDetails', 'od')
301 301
                 ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name')
302
-                ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%');
302
+                ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%');
303 303
         }
304 304
 
305 305
         // Order By
Please login to merge, or discard this patch.
src/Eccube/Command/GeneratorCommand/EntityFromDbGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
             $cmf->setEntityManager($em);
165 165
             $metadatas = $cmf->getAllMetadata();
166 166
 
167
-            $filters = array_map(function ($value) {
167
+            $filters = array_map(function($value) {
168 168
                 return ucfirst(Inflector::camelize(str_replace('plg_', '', $value)));
169 169
             }, $tableList);
170 170
             $metadatas = MetadataFilter::filter($metadatas, $filters);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/FileController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     private $error = null;
40 40
     private $encode = '';
41 41
 
42
-    public function __construct(){
42
+    public function __construct() {
43 43
         $this->encode = self::UTF;
44 44
         if ('\\' === DIRECTORY_SEPARATOR) {
45 45
             $this->encode = self::SJIS;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $arrFileList = $this->getFileList($app, $nowDir);
85 85
 
86 86
         $javascript = $this->getJsArrayList($tree);
87
-        $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '" . $nowDir . "', 'tree_select_file', 'tree_status', 'move');";
87
+        $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '".$nowDir."', 'tree_select_file', 'tree_status', 'move');";
88 88
 
89 89
         return $app->render('Content/file.twig', array(
90 90
             'form' => $form->createView(),
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 $nowDir = $this->checkDir($request->get('now_dir'), $topDir)
142 142
                     ? $this->normalizePath($request->get('now_dir'))
143 143
                     : $topDir;
144
-                $fs->mkdir($nowDir . '/' . $filename);
144
+                $fs->mkdir($nowDir.'/'.$filename);
145 145
             }
146 146
         }
147 147
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     {
220 220
         $str = "arrTree = new Array();\n";
221 221
         foreach ($tree as $key => $val) {
222
-            $str .= 'arrTree[' . $key . "] = new Array(" . $key . ", '" . $val['type'] . "', '" . $val['path'] . "', " . $val['rank'] . ',';
222
+            $str .= 'arrTree['.$key."] = new Array(".$key.", '".$val['type']."', '".$val['path']."', ".$val['rank'].',';
223 223
             if ($val['open']) {
224 224
                 $str .= "true);\n";
225 225
             } else {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     private function getFileList($app, $nowDir)
271 271
     {
272 272
         $topDir = $app['config']['user_data_realdir'];
273
-        $filter = function (\SplFileInfo $file) use ($topDir) {
273
+        $filter = function(\SplFileInfo $file) use ($topDir) {
274 274
             $acceptPath = realpath($topDir);
275 275
             $targetPath = $file->getRealPath();
276 276
             return (strpos($targetPath, $acceptPath) === 0);
Please login to merge, or discard this patch.
src/Eccube/Repository/OrderRepository.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
         if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) {
101 101
             $qb
102 102
                 ->andWhere('CONCAT(o.name01, o.name02) LIKE :name')
103
-                ->setParameter('name', '%' . $searchData['name'] . '%');
103
+                ->setParameter('name', '%'.$searchData['name'].'%');
104 104
         }
105 105
 
106 106
         // kana
107 107
         if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) {
108 108
             $qb
109 109
                 ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana')
110
-                ->setParameter('kana', '%' . $searchData['kana'] . '%');
110
+                ->setParameter('kana', '%'.$searchData['kana'].'%');
111 111
         }
112 112
 
113 113
         // email
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
             $qb
245 245
                 ->leftJoin('o.OrderDetails', 'od')
246 246
                 ->andWhere('od.product_name LIKE :buy_product_name')
247
-                ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%');
247
+                ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%');
248 248
         }
249 249
 
250 250
         // Order By
@@ -270,13 +270,13 @@  discard block
 block discarded – undo
270 270
                 ->setParameter('order_id_start', $searchData['order_id_start']);
271 271
         }
272 272
         // multi
273
-        if (isset( $searchData['multi']) && Str::isNotBlank($searchData['multi'])) {
273
+        if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) {
274 274
             $multi = preg_match('/^\d+$/', $searchData['multi']) ? $searchData['multi'] : null;
275 275
             $qb
276
-                ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR ' .
276
+                ->andWhere('o.id = :multi OR o.name01 LIKE :likemulti OR o.name02 LIKE :likemulti OR '.
277 277
                            'o.kana01 LIKE :likemulti OR o.kana02 LIKE :likemulti OR o.company_name LIKE :likemulti')
278 278
                 ->setParameter('multi', $multi)
279
-                ->setParameter('likemulti', '%' . $searchData['multi'] . '%');
279
+                ->setParameter('likemulti', '%'.$searchData['multi'].'%');
280 280
         }
281 281
 
282 282
         // order_id_end
@@ -313,28 +313,28 @@  discard block
 block discarded – undo
313 313
         if (isset($searchData['name']) && Str::isNotBlank($searchData['name'])) {
314 314
             $qb
315 315
                 ->andWhere('CONCAT(o.name01, o.name02) LIKE :name')
316
-                ->setParameter('name', '%' . $searchData['name'] . '%');
316
+                ->setParameter('name', '%'.$searchData['name'].'%');
317 317
         }
318 318
 
319 319
         // kana
320 320
         if (isset($searchData['kana']) && Str::isNotBlank($searchData['kana'])) {
321 321
             $qb
322 322
                 ->andWhere('CONCAT(o.kana01, o.kana02) LIKE :kana')
323
-                ->setParameter('kana', '%' . $searchData['kana'] . '%');
323
+                ->setParameter('kana', '%'.$searchData['kana'].'%');
324 324
         }
325 325
 
326 326
         // email
327 327
         if (isset($searchData['email']) && Str::isNotBlank($searchData['email'])) {
328 328
             $qb
329 329
                 ->andWhere('o.email like :email')
330
-                ->setParameter('email', '%' . $searchData['email'] . '%');
330
+                ->setParameter('email', '%'.$searchData['email'].'%');
331 331
         }
332 332
 
333 333
         // tel
334 334
         if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) {
335 335
             $qb
336 336
                 ->andWhere('CONCAT(o.tel01, o.tel02, o.tel03) LIKE :tel')
337
-                ->setParameter('tel', '%' . $searchData['tel'] . '%');
337
+                ->setParameter('tel', '%'.$searchData['tel'].'%');
338 338
         }
339 339
 
340 340
         // sex
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
             $qb
447 447
                 ->leftJoin('o.OrderDetails', 'od')
448 448
                 ->andWhere('od.product_name LIKE :buy_product_name')
449
-                ->setParameter('buy_product_name', '%' . $searchData['buy_product_name'] . '%');
449
+                ->setParameter('buy_product_name', '%'.$searchData['buy_product_name'].'%');
450 450
         }
451 451
 
452 452
         // Order By
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                     }
204 204
 
205 205
                     $extension = $image->getClientOriginalExtension();
206
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
206
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
207 207
                     $image->move($app['config']['image_temp_realdir'], $filename);
208 208
                     $files[] = $filename;
209 209
                 }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $form = $builder->getForm();
280 280
 
281 281
         if (!$has_class) {
282
-            $ProductClass->setStockUnlimited((boolean)$ProductClass->getStockUnlimited());
282
+            $ProductClass->setStockUnlimited((boolean) $ProductClass->getStockUnlimited());
283 283
             $form['class']->setData($ProductClass);
284 284
         }
285 285
 
@@ -365,8 +365,8 @@  discard block
 block discarded – undo
365 365
                 $Categories = $form->get('Category')->getData();
366 366
                 $categoriesIdList = array();
367 367
                 foreach ($Categories as $Category) {
368
-                    foreach($Category->getPath() as $ParentCategory){
369
-                        if (!isset($categoriesIdList[$ParentCategory->getId()])){
368
+                    foreach ($Category->getPath() as $ParentCategory) {
369
+                        if (!isset($categoriesIdList[$ParentCategory->getId()])) {
370 370
                             $ProductCategory = $this->createProductCategory($Product, $ParentCategory, $count);
371 371
                             $app['orm.em']->persist($ProductCategory);
372 372
                             $count++;
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
                             $categoriesIdList[$ParentCategory->getId()] = true;
376 376
                         }
377 377
                     }
378
-                    if (!isset($categoriesIdList[$Category->getId()])){
378
+                    if (!isset($categoriesIdList[$Category->getId()])) {
379 379
                         $ProductCategory = $this->createProductCategory($Product, $Category, $count);
380 380
                         $app['orm.em']->persist($ProductCategory);
381 381
                         $count++;
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
                     $app['orm.em']->persist($ProductImage);
398 398
 
399 399
                     // 移動
400
-                    $file = new File($app['config']['image_temp_realdir'] . '/' . $add_image);
400
+                    $file = new File($app['config']['image_temp_realdir'].'/'.$add_image);
401 401
                     $file->move($app['config']['image_save_realdir']);
402 402
                 }
403 403
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
                     // 削除
419 419
                     $fs = new Filesystem();
420
-                    $fs->remove($app['config']['image_save_realdir'] . '/' . $delete_image);
420
+                    $fs->remove($app['config']['image_save_realdir'].'/'.$delete_image);
421 421
                 }
422 422
                 $app['orm.em']->persist($Product);
423 423
                 $app['orm.em']->flush();
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
                 foreach ($deleteImages as $deleteImage) {
578 578
                     try {
579 579
                         $fs = new Filesystem();
580
-                        $fs->remove($app['config']['image_save_realdir'] . '/' . $deleteImage);
580
+                        $fs->remove($app['config']['image_save_realdir'].'/'.$deleteImage);
581 581
                     } catch (\Exception $e) {
582 582
                         // エラーが発生しても無視する
583 583
                     }
@@ -647,10 +647,10 @@  discard block
 block discarded – undo
647 647
 
648 648
                     // 画像ファイルを新規作成
649 649
                     $extension = pathinfo($Image->getFileName(), PATHINFO_EXTENSION);
650
-                    $filename = date('mdHis') . uniqid('_') . '.' . $extension;
650
+                    $filename = date('mdHis').uniqid('_').'.'.$extension;
651 651
                     try {
652 652
                         $fs = new Filesystem();
653
-                        $fs->copy($app['config']['image_save_realdir'] . '/' . $Image->getFileName(), $app['config']['image_save_realdir'] . '/' . $filename);
653
+                        $fs->copy($app['config']['image_save_realdir'].'/'.$Image->getFileName(), $app['config']['image_save_realdir'].'/'.$filename);
654 654
                     } catch (\Exception $e) {
655 655
                         // エラーが発生しても無視する
656 656
                     }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
         $em->getConfiguration()->setSQLLogger(null);
726 726
 
727 727
         $response = new StreamedResponse();
728
-        $response->setCallback(function () use ($app, $request) {
728
+        $response->setCallback(function() use ($app, $request) {
729 729
 
730 730
             // CSV種別を元に初期化.
731 731
             $app['eccube.service.csv.export']->initCsvType(CsvType::CSV_TYPE_PRODUCT);
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
             // データ行の出力.
766 766
             $app['eccube.service.csv.export']->setExportQueryBuilder($qb);
767 767
 
768
-            $app['eccube.service.csv.export']->exportData(function ($entity, CsvExportService $csvService) use ($app, $request) {
768
+            $app['eccube.service.csv.export']->exportData(function($entity, CsvExportService $csvService) use ($app, $request) {
769 769
                 $Csvs = $csvService->getCsvs();
770 770
 
771 771
                 /** @var $Product \Eccube\Entity\Product */
@@ -808,9 +808,9 @@  discard block
 block discarded – undo
808 808
         });
809 809
 
810 810
         $now = new \DateTime();
811
-        $filename = 'product_' . $now->format('YmdHis') . '.csv';
811
+        $filename = 'product_'.$now->format('YmdHis').'.csv';
812 812
         $response->headers->set('Content-Type', 'application/octet-stream');
813
-        $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
813
+        $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
814 814
         $response->send();
815 815
 
816 816
         log_info('商品CSV出力ファイル名', array($filename));
Please login to merge, or discard this patch.
src/Eccube/Service/CartService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function getProductQuantity($productClassId)
224 224
     {
225
-        $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId);
225
+        $CartItem = $this->cart->getCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId);
226 226
         if ($CartItem) {
227 227
             return $CartItem->getQuantity();
228 228
         } else {
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             $CartItem = new CartItem();
308 308
             $CartItem
309 309
                 ->setClassName('Eccube\Entity\ProductClass')
310
-                ->setClassId((string)$ProductClass->getId())
310
+                ->setClassId((string) $ProductClass->getId())
311 311
                 ->setPrice($ProductClass->getPrice02IncTax())
312 312
                 ->setQuantity($quantity);
313 313
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     public function removeProduct($productClassId)
467 467
     {
468
-        $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string)$productClassId);
468
+        $this->cart->removeCartItemByIdentifier('Eccube\Entity\ProductClass', (string) $productClassId);
469 469
 
470 470
         // 支払方法の再設定
471 471
         if ($this->BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
Please login to merge, or discard this patch.