Completed
Push — symfony3-fqcn-sylius ( 38ebd1 )
by Kamil
18:54
created
src/Sylius/Behat/Context/Setup/ProductTaxonContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $productTaxon->setProduct($product);
73 73
         $productTaxon->setTaxon($taxon);
74 74
 
75
-        if(null !== $position) {
75
+        if (null !== $position) {
76 76
             $productTaxon->setPosition($position);
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Taxon/ShowPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $productsList = $this->getDocument()->find('css', '#products');
62 62
         
63
-        $products = $productsList->findAll('css','.column > .card');
63
+        $products = $productsList->findAll('css', '.column > .card');
64 64
         
65 65
         return count($products);
66 66
     }
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
     public function hasProductsInOrder(array $productNames)
104 104
     {
105 105
         $productsList = $this->getDocument()->find('css', '#products');
106
-        $products = $productsList->findAll('css','.column  .content > .sylius-product-name');
106
+        $products = $productsList->findAll('css', '.column  .content > .sylius-product-name');
107 107
 
108 108
         foreach ($productNames as $key => $value) {
109
-            if($products[$key]->getText() !== $value) {
109
+            if ($products[$key]->getText() !== $value) {
110 110
                 return false;
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPerTaxonPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $productsOnPage = $this->getColumnFields('name');
32 32
 
33 33
         foreach ($productsOnPage as $key => $product) {
34
-            if($productNames[$key] !== $product) {
34
+            if ($productNames[$key] !== $product) {
35 35
                 return false;
36 36
             }
37 37
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $this->getElement('save_configuration_button')->press();
57 57
 
58
-        $this->getDocument()->waitFor(5, function (){
58
+        $this->getDocument()->waitFor(5, function () {
59 59
             return false === $this->getElement('save_configuration_button')->hasClass('loading');
60 60
         } );
61 61
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/PaymentContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function storeAllowsPaying($paymentMethodName, $position = null)
90 90
     {
91
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', true, $position);
91
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', true, $position);
92 92
     }
93 93
 
94 94
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
142 142
     {
143
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false);
143
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false);
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     {
181 181
         $product = $this->createProduct($productName, $price);
182 182
 
183
-        $product->setDescription('Awesome '.$productName);
183
+        $product->setDescription('Awesome ' . $productName);
184 184
 
185 185
         if ($this->sharedStorage->has('channel')) {
186 186
             $product->addChannel($this->sharedStorage->get('channel'));
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $product = $this->createProduct($productName, $price);
215 215
 
216
-        $product->setDescription('Awesome '.$productName);
216
+        $product->setDescription('Awesome ' . $productName);
217 217
 
218 218
         foreach ($channels as $channel) {
219 219
             $product->addChannel($channel);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $product->setCode(StringInflector::nameToUppercaseCode($productName));
252 252
         $product->setSlug($this->slugGenerator->generate($productName));
253 253
 
254
-        $product->setDescription('Awesome '.$productName);
254
+        $product->setDescription('Awesome ' . $productName);
255 255
 
256 256
         if ($this->sharedStorage->has('channel')) {
257 257
             $channel = $this->sharedStorage->get('channel');
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      */
374 374
     public function thisProductHasAttributeWithValue(ProductInterface $product, $productAttributeType, $productAttributeName, $value)
375 375
     {
376
-        $attribute = $this->createProductAttribute($productAttributeType,$productAttributeName);
376
+        $attribute = $this->createProductAttribute($productAttributeType, $productAttributeName);
377 377
         $attributeValue = $this->createProductAttributeValue($value, $attribute);
378 378
         $product->addAttribute($attributeValue);
379 379
 
@@ -385,8 +385,8 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
387 387
     {
388
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
389
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
388
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
389
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
390 390
         $product->addAttribute($attributeValue);
391 391
 
392 392
         $this->objectManager->flush();
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
      */
411 411
     public function thisProductHasPercentAttributeWithValueAtPosition(ProductInterface $product, $productAttributeName, $position)
412 412
     {
413
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
413
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
414 414
         $attribute->setPosition($position);
415
-        $attributeValue = $this->createProductAttributeValue(rand(1,100)/100, $attribute);
415
+        $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute);
416 416
 
417 417
         $product->addAttribute($attributeValue);
418 418
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
         /** @var ImageInterface $productImage */
585 585
         $productImage = $this->productImageFactory->createNew();
586
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
586
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
587 587
         $productImage->setCode($imageCode);
588 588
         $this->imageUploader->upload($productImage);
589 589
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      */
117 117
     public function iChangeRatioTo($ratio)
118 118
     {
119
-        $this->updatePage->changeRatio((float)$ratio);
119
+        $this->updatePage->changeRatio((float) $ratio);
120 120
     }
121 121
 
122 122
     /**
Please login to merge, or discard this patch.