|
@@ -276,9 +276,9 @@ discard block |
|
|
block discarded – undo |
|
276
|
276
|
|
|
277
|
277
|
$product->setName($productName); |
|
278
|
278
|
$product->setCode(StringInflector::nameToUppercaseCode($productName)); |
|
279
|
|
- $product->setSlug($slug?:$this->slugGenerator->generate($productName)); |
|
|
279
|
+ $product->setSlug($slug ?: $this->slugGenerator->generate($productName)); |
|
280
|
280
|
|
|
281
|
|
- $product->setDescription('Awesome '.$productName); |
|
|
281
|
+ $product->setDescription('Awesome ' . $productName); |
|
282
|
282
|
|
|
283
|
283
|
if ($this->sharedStorage->has('channel')) { |
|
284
|
284
|
$channel = $this->sharedStorage->get('channel'); |
|
@@ -643,7 +643,7 @@ discard block |
|
|
block discarded – undo |
|
643
|
643
|
|
|
644
|
644
|
/** @var ImageInterface $productImage */ |
|
645
|
645
|
$productImage = $this->productImageFactory->createNew(); |
|
646
|
|
- $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
|
646
|
+ $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
647
|
647
|
$productImage->setType($imageType); |
|
648
|
648
|
$this->imageUploader->upload($productImage); |
|
649
|
649
|
|
Please login to merge, or discard this patch.