Completed
Push — locale-in-url ( c8ed20...ec55a8 )
by Kamil
46:19 queued 21:47
created
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/CreatePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateConfigurableProductPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateConfigurableProductPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.