Completed
Push — master ( 7c0075...645752 )
by Kamil
18:52
created
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Unused Use Statements   +2 added lines, -2 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;
@@ -23,16 +24,15 @@  discard block
 block discarded – undo
23 24
 use Sylius\Component\Core\Model\ProductTranslationInterface;
24 25
 use Sylius\Component\Core\Model\ProductVariantInterface;
25 26
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
26
-use Sylius\Behat\Service\SharedStorageInterface;
27 27
 use Sylius\Component\Core\Uploader\ImageUploaderInterface;
28 28
 use Sylius\Component\Product\Factory\ProductFactoryInterface;
29 29
 use Sylius\Component\Product\Model\ProductAttributeInterface;
30 30
 use Sylius\Component\Product\Model\ProductAttributeValueInterface;
31 31
 use Sylius\Component\Product\Model\ProductOptionInterface;
32 32
 use Sylius\Component\Product\Model\ProductOptionValueInterface;
33
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
33 34
 use Sylius\Component\Resource\Factory\FactoryInterface;
34 35
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
35
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
36 36
 use Symfony\Component\HttpFoundation\File\UploadedFile;
37 37
 
38 38
 /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPerTaxonPageInterface.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Behat\Page\Admin\Product;
13 13
 
14 14
 use Sylius\Behat\Page\Admin\Crud\IndexPageInterface as CrudIndexPageInterface;
15
-use Sylius\Component\Core\Model\ProductInterface;
16 15
 
17 16
 /**
18 17
  * @author Anna Walasek <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Assigner/IpAssignerInterface.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/Bundle/CoreBundle/Controller/ProductTaxonController.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 {
30 30
     /**
31 31
      * @param Request $request
32
-     * @return \Symfony\Component\HttpFoundation\RedirectResponse
32
+     * @return JsonResponse
33 33
      */
34 34
     public function updatePositionsAction(Request $request)
35 35
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\CoreBundle\Controller;
13 13
 
14
-use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface;
15 14
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
16 15
 use Sylius\Component\Core\Model\ProductTaxonInterface;
17 16
 use Sylius\Component\Resource\ResourceActions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
         $productTaxons = $request->get('productTaxons');
39 39
 
40 40
         if (in_array($request->getMethod(), ['POST', 'PUT', 'PATCH']) && null !== $productTaxons) {
41
-            foreach($productTaxons as $productTaxon) {
41
+            foreach ($productTaxons as $productTaxon) {
42 42
 
43
-                if(!is_numeric($productTaxon['position'])) {
43
+                if (!is_numeric($productTaxon['position'])) {
44 44
                     throw new HttpException(
45 45
                         Response::HTTP_NOT_ACCEPTABLE,
46 46
                         sprintf('The productTaxon position "%s" is invalid.', $productTaxon['position'])
Please login to merge, or discard this patch.
DataTransformer/ProductTaxonCollectionToTaxonCollectionTransformerSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,9 @@
 block discarded – undo
14 14
 use Doctrine\Common\Collections\ArrayCollection;
15 15
 use Doctrine\Common\Collections\Collection;
16 16
 use PhpSpec\ObjectBehavior;
17
-use Prophecy\Argument;
18 17
 use Sylius\Bundle\CoreBundle\Form\DataTransformer\ProductTaxonCollectionToTaxonCollectionTransformer;
19 18
 use Sylius\Component\Core\Model\ProductTaxonInterface;
20 19
 use Sylius\Component\Core\Model\TaxonInterface;
21
-use Sylius\Component\Product\Model\ProductInterface;
22 20
 use Sylius\Component\Resource\Exception\UnexpectedTypeException;
23 21
 use Sylius\Component\Resource\Factory\FactoryInterface;
24 22
 use Symfony\Component\Form\DataTransformerInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderInterface.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param AddressInterface $address
47
+     * @return void
47 48
      */
48 49
     public function setShippingAddress(AddressInterface $address);
49 50
 
@@ -54,6 +55,7 @@  discard block
 block discarded – undo
54 55
 
55 56
     /**
56 57
      * @param AddressInterface $address
58
+     * @return void
57 59
      */
58 60
     public function setBillingAddress(AddressInterface $address);
59 61
 
@@ -64,6 +66,7 @@  discard block
 block discarded – undo
64 66
 
65 67
     /**
66 68
      * @param string $checkoutState
69
+     * @return void
67 70
      */
68 71
     public function setCheckoutState($checkoutState);
69 72
 
@@ -74,6 +77,7 @@  discard block
 block discarded – undo
74 77
 
75 78
     /**
76 79
      * @param string $paymentState
80
+     * @return void
77 81
      */
78 82
     public function setPaymentState($paymentState);
79 83
 
@@ -101,14 +105,19 @@  discard block
 block discarded – undo
101 105
 
102 106
     /**
103 107
      * @param ShipmentInterface $shipment
108
+     * @return void
104 109
      */
105 110
     public function addShipment(ShipmentInterface $shipment);
106 111
 
107 112
     /**
108 113
      * @param ShipmentInterface $shipment
114
+     * @return void
109 115
      */
110 116
     public function removeShipment(ShipmentInterface $shipment);
111 117
 
118
+    /**
119
+     * @return void
120
+     */
112 121
     public function removeShipments();
113 122
 
114 123
     /**
@@ -127,6 +136,7 @@  discard block
 block discarded – undo
127 136
      * @param string
128 137
      *
129 138
      * @throws \InvalidArgumentException
139
+     * @return void
130 140
      */
131 141
     public function setCurrencyCode($currencyCode);
132 142
 
@@ -137,6 +147,7 @@  discard block
 block discarded – undo
137 147
 
138 148
     /**
139 149
      * @param float $exchangeRate
150
+     * @return void
140 151
      */
141 152
     public function setExchangeRate($exchangeRate);
142 153
 
@@ -149,11 +160,13 @@  discard block
 block discarded – undo
149 160
 
150 161
     /**
151 162
      * @param string
163
+     * @return void
152 164
      */
153 165
     public function setLocaleCode($localeCode);
154 166
 
155 167
     /**
156 168
      * @param BaseCouponInterface $coupon
169
+     * @return void
157 170
      */
158 171
     public function setPromotionCoupon(BaseCouponInterface $coupon = null);
159 172
 
@@ -164,6 +177,7 @@  discard block
 block discarded – undo
164 177
 
165 178
     /**
166 179
      * @param string $state
180
+     * @return void
167 181
      */
168 182
     public function setShippingState($state);
169 183
 
@@ -189,6 +203,7 @@  discard block
 block discarded – undo
189 203
 
190 204
     /**
191 205
      * @param string $tokenValue
206
+     * @return void
192 207
      */
193 208
     public function setTokenValue($tokenValue);
194 209
 
@@ -204,6 +219,7 @@  discard block
 block discarded – undo
204 219
 
205 220
     /**
206 221
      * @param string $customerIp
222
+     * @return void
207 223
      */
208 224
     public function setCustomerIp($customerIp);
209 225
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductTaxonsAwareInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param OptionInterface $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(OptionInterface $option = null);
32 33
 
@@ -41,6 +42,7 @@  discard block
 block discarded – undo
41 42
      * Set internal value.
42 43
      *
43 44
      * @param string $value
45
+     * @return void
44 46
      */
45 47
     public function setValue($value);
46 48
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/TaxonInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param OptionInterface $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(OptionInterface $option = null);
32 33
 
@@ -41,6 +42,7 @@  discard block
 block discarded – undo
41 42
      * Set internal value.
42 43
      *
43 44
      * @param string $value
45
+     * @return void
44 46
      */
45 47
     public function setValue($value);
46 48
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                                         ->scalarNode('factory')->defaultValue(Factory::class)->end()
99 99
                                     ->end()
100 100
                                 ->end()
101
-                             ->end()
101
+                                ->end()
102 102
                         ->end()
103 103
                     ->end()
104 104
                 ->end()
Please login to merge, or discard this patch.