Completed
Push — symfony3-fqcn-promotion ( 358a27...51f651 )
by Kamil
34:17 queued 17:43
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/ProductContext.php 2 patches
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.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@  discard block
 block discarded – undo
15 15
 use Behat\Gherkin\Node\TableNode;
16 16
 use Behat\Mink\Element\NodeElement;
17 17
 use Doctrine\Common\Persistence\ObjectManager;
18
+use Sylius\Behat\Service\SharedStorageInterface;
18 19
 use Sylius\Component\Attribute\Factory\AttributeFactoryInterface;
19 20
 use Sylius\Component\Core\Formatter\StringInflector;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
@@ -24,7 +25,6 @@  discard block
 block discarded – undo
24 25
 use Sylius\Component\Core\Model\ProductVariantInterface;
25 26
 use Sylius\Component\Core\Pricing\Calculators;
26 27
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
27
-use Sylius\Behat\Service\SharedStorageInterface;
28 28
 use Sylius\Component\Core\Uploader\ImageUploaderInterface;
29 29
 use Sylius\Component\Product\Factory\ProductFactoryInterface;
30 30
 use Sylius\Component\Product\Generator\SlugGeneratorInterface;
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 use Sylius\Component\Product\Model\ProductAttributeValueInterface;
33 33
 use Sylius\Component\Product\Model\ProductOptionInterface;
34 34
 use Sylius\Component\Product\Model\ProductOptionValueInterface;
35
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
35 36
 use Sylius\Component\Resource\Factory\FactoryInterface;
36
-use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
37 37
 use Sylius\Component\Resource\Model\TranslationInterface;
38
+use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
38 39
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
39
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
40 40
 use Symfony\Component\HttpFoundation\File\UploadedFile;
41 41
 
42 42
 /**
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.
src/Sylius/Behat/Page/Admin/ExchangeRate/CreatePageInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
      * Sets all option values.
40 40
      *
41 41
      * @param Collection $optionValues
42
+     * @return void
42 43
      */
43 44
     public function setValues(Collection $optionValues);
44 45
 
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
      * Adds option value.
47 48
      *
48 49
      * @param OptionValueInterface $optionValue
50
+     * @return void
49 51
      */
50 52
     public function addValue(OptionValueInterface $optionValue);
51 53
 
@@ -53,6 +55,7 @@  discard block
 block discarded – undo
53 55
      * Removes option value.
54 56
      *
55 57
      * @param OptionValueInterface $optionValue
58
+     * @return void
56 59
      */
57 60
     public function removeValue(OptionValueInterface $optionValue);
58 61
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ExchangeRate/UpdatePageInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Currency/Model/ExchangeRateInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
      * Sets all option values.
40 40
      *
41 41
      * @param Collection $optionValues
42
+     * @return void
42 43
      */
43 44
     public function setValues(Collection $optionValues);
44 45
 
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
      * Adds option value.
47 48
      *
48 49
      * @param OptionValueInterface $optionValue
50
+     * @return void
49 51
      */
50 52
     public function addValue(OptionValueInterface $optionValue);
51 53
 
@@ -53,6 +55,7 @@  discard block
 block discarded – undo
53 55
      * Removes option value.
54 56
      *
55 57
      * @param OptionValueInterface $optionValue
58
+     * @return void
56 59
      */
57 60
     public function removeValue(OptionValueInterface $optionValue);
58 61
 
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.
tests/Controller/ProvinceApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
41 41
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
42 42
 
43
-        $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
43
+        $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
44 44
 
45 45
         $response = $this->client->getResponse();
46 46
         $this->assertResponse($response, 'province/show_response', Response::HTTP_OK);
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
52 52
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
53 53
 
54
-        $this->client->request('DELETE', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
54
+        $this->client->request('DELETE', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
55 55
 
56 56
         $response = $this->client->getResponse();
57 57
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
58 58
 
59
-        $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
59
+        $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
60 60
 
61 61
         $response = $this->client->getResponse();
62 62
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.