@@ -136,7 +136,7 @@ |
||
136 | 136 | |
137 | 137 | /** @var ImageInterface $taxonImage */ |
138 | 138 | $taxonImage = $this->taxonImageFactory->createNew(); |
139 | - $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
139 | + $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
140 | 140 | $taxonImage->setType($imageType); |
141 | 141 | $this->imageUploader->upload($taxonImage); |
142 | 142 |
@@ -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 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $imageForm->fillField('Type', $type); |
124 | 124 | } |
125 | 125 | |
126 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
126 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $filesPath = $this->getParameter('files_path'); |
135 | 135 | |
136 | 136 | $imageForm = $this->getImageElementByType($type); |
137 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
137 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | private function getImageElementByType($type) |
228 | 228 | { |
229 | 229 | $images = $this->getElement('images'); |
230 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
230 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
231 | 231 | |
232 | 232 | if (null === $typeInput) { |
233 | 233 | return null; |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $imageForm->fillField('Type', $type); |
187 | 187 | } |
188 | 188 | |
189 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
189 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $filesPath = $this->getParameter('files_path'); |
198 | 198 | |
199 | 199 | $imageForm = $this->getImageElementByType($type); |
200 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
200 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | private function getImageElementByType($type) |
453 | 453 | { |
454 | 454 | $images = $this->getElement('images'); |
455 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
455 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
456 | 456 | |
457 | 457 | if (null === $typeInput) { |
458 | 458 | return null; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $imageForm->fillField('Type', $type); |
61 | 61 | } |
62 | 62 | |
63 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
63 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |