@@ -356,13 +356,13 @@ discard block |
||
356 | 356 | |
357 | 357 | // 新しく描画するキャンバスを作成 |
358 | 358 | $canvas = imagecreatetruecolor($origin_w, $origin_h); |
359 | - imagecopyresampled($canvas, $origin_image, 0,0,0,0, $origin_w, $origin_h, $origin_w, $origin_h); |
|
359 | + imagecopyresampled($canvas, $origin_image, 0, 0, 0, 0, $origin_w, $origin_h, $origin_w, $origin_h); |
|
360 | 360 | |
361 | 361 | $filename = date('mdHis').uniqid('_').'.'.$extension; |
362 | 362 | $files[] = $filename; |
363 | 363 | |
364 | 364 | // 保存先を指定 |
365 | - $resize_path = $this->eccubeConfig['eccube_temp_image_dir'] . '/' . $filename; |
|
365 | + $resize_path = $this->eccubeConfig['eccube_temp_image_dir'].'/'.$filename; |
|
366 | 366 | |
367 | 367 | // 画像形式ごとの処理 |
368 | 368 | switch ($type) { |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | if (!$this->productImageRepository->findOneBy(['file_name' => $delete_image])) { |
608 | 608 | // 削除 |
609 | 609 | $fs = new Filesystem(); |
610 | - $fs->remove($this->eccubeConfig['eccube_save_image_dir'] . '/' . $delete_image); |
|
610 | + $fs->remove($this->eccubeConfig['eccube_save_image_dir'].'/'.$delete_image); |
|
611 | 611 | } |
612 | 612 | } |
613 | 613 | $this->entityManager->persist($Product); |