Completed
Push — symfony3-fqcn ( fc44dc...d46cdc )
by Kamil
34:08 queued 14:53
created
src/Sylius/Component/Payment/Model/PaymentMethodInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -32,16 +32,19 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param Collection $variants
35
+     * @return void
35 36
      */
36 37
     public function setVariants(Collection $variants);
37 38
 
38 39
     /**
39 40
      * @param VariantInterface $variant
41
+     * @return void
40 42
      */
41 43
     public function addVariant(VariantInterface $variant);
42 44
 
43 45
     /**
44 46
      * @param VariantInterface $variant
47
+     * @return void
45 48
      */
46 49
     public function removeVariant(VariantInterface $variant);
47 50
 
@@ -64,16 +67,19 @@  discard block
 block discarded – undo
64 67
 
65 68
     /**
66 69
      * @param Collection $options
70
+     * @return void
67 71
      */
68 72
     public function setOptions(Collection $options);
69 73
 
70 74
     /**
71 75
      * @param OptionInterface $option
76
+     * @return void
72 77
      */
73 78
     public function addOption(OptionInterface $option);
74 79
 
75 80
     /**
76 81
      * @param OptionInterface $option
82
+     * @return void
77 83
      */
78 84
     public function removeOption(OptionInterface $option);
79 85
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/PaymentBundle/spec/Form/Type/PaymentMethodTypeSpec.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $this->shouldImplement(FormTypeInterface::class);
41 41
     }
42 42
 
43
-    function it_adds_add_code_event_subscriber(FormBuilder $builder) 
43
+    function it_adds_add_code_event_subscriber(FormBuilder $builder)
44 44
     {
45 45
         $builder->add(Argument::any(), Argument::cetera())->willReturn($builder);
46 46
       
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/Page/Shop/Checkout/SelectPaymentPage.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -100,25 +100,25 @@
 block discarded – undo
100 100
     /**
101 101
      * {@inheritdoc}
102 102
      */
103
-     public function isNextStepButtonUnavailable()
104
-     {
105
-         return $this->getElement('next_step')->hasClass('disabled');
106
-     }
103
+        public function isNextStepButtonUnavailable()
104
+        {
105
+            return $this->getElement('next_step')->hasClass('disabled');
106
+        }
107 107
 
108 108
     /**
109 109
      * {@inheritdoc}
110 110
      */
111
-     public function getPaymentMethods()
112
-     {
113
-         $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label');
111
+        public function getPaymentMethods()
112
+        {
113
+            $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label');
114 114
 
115
-         $paymentMethods = [];
116
-         foreach ($inputs as $input) {
117
-             $paymentMethods[] = trim($input->getText());
118
-         }
115
+            $paymentMethods = [];
116
+            foreach ($inputs as $input) {
117
+                $paymentMethods[] = trim($input->getText());
118
+            }
119 119
 
120
-         return $paymentMethods;
121
-     }
120
+            return $paymentMethods;
121
+        }
122 122
 
123 123
     /**
124 124
      * {@inheritdoc}
Please login to merge, or discard this patch.