@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $channel = $this->sharedStorage->get('channel'); |
187 | 187 | } |
188 | 188 | $product = $this->createProduct($productName, $price, null, $channel); |
189 | - $product->setDescription('Awesome '.$productName); |
|
189 | + $product->setDescription('Awesome ' . $productName); |
|
190 | 190 | |
191 | 191 | if (null !== $channel) { |
192 | 192 | $product->addChannel($channel); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | /** @var ProductVariantInterface $productVariant */ |
242 | 242 | $productVariant = $this->defaultVariantResolver->getVariant($product); |
243 | 243 | |
244 | - $product->setDescription('Awesome '.$productName); |
|
244 | + $product->setDescription('Awesome ' . $productName); |
|
245 | 245 | |
246 | 246 | foreach ($channels as $channel) { |
247 | 247 | $product->addChannel($channel); |
@@ -290,9 +290,9 @@ discard block |
||
290 | 290 | |
291 | 291 | $product->setName($productName); |
292 | 292 | $product->setCode(StringInflector::nameToUppercaseCode($productName)); |
293 | - $product->setSlug($slug?:$this->slugGenerator->generate($productName)); |
|
293 | + $product->setSlug($slug ?: $this->slugGenerator->generate($productName)); |
|
294 | 294 | |
295 | - $product->setDescription('Awesome '.$productName); |
|
295 | + $product->setDescription('Awesome ' . $productName); |
|
296 | 296 | |
297 | 297 | if ($this->sharedStorage->has('channel')) { |
298 | 298 | $channel = $this->sharedStorage->get('channel'); |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | |
642 | 642 | /** @var ImageInterface $productImage */ |
643 | 643 | $productImage = $this->productImageFactory->createNew(); |
644 | - $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
644 | + $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
645 | 645 | $productImage->setType($imageType); |
646 | 646 | $this->imageUploader->upload($productImage); |
647 | 647 |
@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | $imageForm = $this->getLastImageElement(); |
115 | 115 | $imageForm->fillField('Type', $type); |
116 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
116 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |