Completed
Push — sf-44 ( c12fd4...bb2145 )
by Kamil
21:19 queued 15:12
created
tests/Controller/ProductAttributeApiTest.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 }
147 147
             }
148 148
         }
149
-EOT;
149
+eot;
150 150
 
151 151
         $this->client->request('POST', '/api/v1/product-attributes/text', [], [], static::$authorizedHeaderWithContentType, $data);
152 152
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 }
204 204
             }
205 205
         }
206
-EOT;
206
+eot;
207 207
 
208 208
         $this->client->request('PUT', $this->getProductAttributeUrl($productAttribute), [], [], static::$authorizedHeaderWithContentType, $data);
209 209
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                 }
239 239
             }
240 240
         }
241
-EOT;
241
+eot;
242 242
 
243 243
         $this->client->request('PATCH', $this->getProductAttributeUrl($productAttribute), [], [], static::$authorizedHeaderWithContentType, $data);
244 244
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         {
267 267
             "type": "integer"
268 268
         }
269
-EOT;
269
+eot;
270 270
 
271 271
         $this->client->request('PATCH', $this->getProductAttributeUrl($productAttribute), [], [], static::$authorizedHeaderWithContentType, $data);
272 272
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 }
311 311
             }
312 312
         }
313
-EOT;
313
+eot;
314 314
 
315 315
         $this->client->request('POST', '/api/v1/product-attributes/select', [], [], static::$authorizedHeaderWithContentType, $data);
316 316
 
Please login to merge, or discard this patch.
tests/Controller/CheckoutApiTestCase.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             "channel": "CHANNEL",
48 48
             "localeCode": "en_US"
49 49
         }
50
-EOT;
50
+eot;
51 51
 
52 52
         $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data);
53 53
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             "variant": "MUG_SW",
72 72
             "quantity": 1
73 73
         }
74
-EOT;
74
+eot;
75 75
 
76 76
         $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data);
77 77
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             },
106 106
             "differentBillingAddress": true
107 107
         }
108
-EOT;
108
+eot;
109 109
 
110 110
         $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId);
111 111
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 }
134 134
             ]
135 135
         }
136
-EOT;
136
+eot;
137 137
 
138 138
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
139 139
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 }
161 161
             ]
162 162
         }
163
-EOT;
163
+eot;
164 164
 
165 165
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
166 166
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionTranslationInterface.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 $name
30
+     * @return void
30 31
      */
31 32
     public function setName(?string $name): void;
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Collector/SyliusCollector.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 namespace Sylius\Bundle\CoreBundle\Collector;
15 15
 
16 16
 use Sylius\Bundle\CoreBundle\Application\Kernel;
17
-use Sylius\Component\Channel\Context\ChannelNotFoundException;
18 17
 use Sylius\Component\Core\Context\ShopperContextInterface;
19 18
 use Sylius\Component\Core\Model\ChannelInterface;
20 19
 use Sylius\Component\Currency\Context\CurrencyNotFoundException;
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/Request/ResolveNextRouteInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -6,11 +6,20 @@
 block discarded – undo
6 6
 
7 7
 interface ResolveNextRouteInterface
8 8
 {
9
+    /**
10
+     * @return string
11
+     */
9 12
     public function getRouteName(): ?string;
10 13
 
14
+    /**
15
+     * @return void
16
+     */
11 17
     public function setRouteName(string $routeName): void;
12 18
 
13 19
     public function getRouteParameters(): array;
14 20
 
21
+    /**
22
+     * @return void
23
+     */
15 24
     public function setRouteParameters(array $parameters): void;
16 25
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/spec/Updater/UnpaidOrdersStateUpdaterSpec.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
         StateMachineInterface $secondOrderStateMachine
47 47
     ): void {
48 48
         $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTimeInterface::class))->willReturn([
49
-           $firstOrder,
50
-           $secondOrder,
49
+            $firstOrder,
50
+            $secondOrder,
51 51
         ]);
52 52
 
53 53
         $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine);
Please login to merge, or discard this patch.
tests/Controller/CustomerApiTest.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 "enabled": "true"
76 76
             }
77 77
         }
78
-EOT;
78
+eot;
79 79
 
80 80
         $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data);
81 81
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             "email": "[email protected]",
99 99
             "gender": "m"
100 100
         }
101
-EOT;
101
+eot;
102 102
 
103 103
         $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data);
104 104
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 "plainPassword" : "testPassword"
125 125
             }
126 126
         }
127
-EOT;
127
+eot;
128 128
 
129 129
         $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data);
130 130
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             "email": "[email protected]",
278 278
             "gender": "m"
279 279
         }
280
-EOT;
280
+eot;
281 281
 
282 282
         $this->client->request('PUT', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data);
283 283
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             "firstName": "John",
318 318
             "lastName": "Doe"
319 319
         }
320
-EOT;
320
+eot;
321 321
 
322 322
         $this->client->request('PATCH', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data);
323 323
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ReviewBundle/Updater/ReviewableRatingUpdaterInterface.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 namespace Sylius\Bundle\ReviewBundle\Updater;
15 15
 
16
-use Sylius\Component\Review\Model\ReviewableInterface;
17 16
 use Sylius\Component\Review\Model\ReviewInterface;
17
+use Sylius\Component\Review\Model\ReviewableInterface;
18 18
 
19 19
 interface ReviewableRatingUpdaterInterface
20 20
 {
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,7 +18,13 @@
 block discarded – undo
18 18
 
19 19
 interface ReviewableRatingUpdaterInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function update(ReviewableInterface $reviewSubject): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function updateFromReview(ReviewInterface $review): void;
24 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariantInterface.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
 use Sylius\Component\Resource\Model\VersionedInterface;
20 20
 use Sylius\Component\Shipping\Model\ShippableInterface;
21 21
 use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
22
-use Sylius\Component\Taxation\Model\TaxableInterface;
23 22
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
23
+use Sylius\Component\Taxation\Model\TaxableInterface;
24 24
 
25 25
 interface ProductVariantInterface extends
26 26
     BaseVariantInterface,
Please login to merge, or discard this patch.
Doc Comments   +51 added lines patch added patch discarded remove patch
@@ -30,24 +30,66 @@  discard block
 block discarded – undo
30 30
     VersionedInterface,
31 31
     ProductImagesAwareInterface
32 32
 {
33
+    /**
34
+     * @return double
35
+     */
33 36
     public function getWeight(): ?float;
34 37
 
38
+    /**
39
+     * @param double $weight
40
+     *
41
+     * @return void
42
+     */
35 43
     public function setWeight(?float $weight): void;
36 44
 
45
+    /**
46
+     * @return double
47
+     */
37 48
     public function getWidth(): ?float;
38 49
 
50
+    /**
51
+     * @param double $width
52
+     *
53
+     * @return void
54
+     */
39 55
     public function setWidth(?float $width): void;
40 56
 
57
+    /**
58
+     * @return double
59
+     */
41 60
     public function getHeight(): ?float;
42 61
 
62
+    /**
63
+     * @param double $height
64
+     *
65
+     * @return void
66
+     */
43 67
     public function setHeight(?float $height): void;
44 68
 
69
+    /**
70
+     * @return double
71
+     */
45 72
     public function getDepth(): ?float;
46 73
 
74
+    /**
75
+     * @param double $depth
76
+     *
77
+     * @return void
78
+     */
47 79
     public function setDepth(?float $depth): void;
48 80
 
81
+    /**
82
+     * @param TaxCategoryInterface $category
83
+     *
84
+     * @return void
85
+     */
49 86
     public function setTaxCategory(?TaxCategoryInterface $category): void;
50 87
 
88
+    /**
89
+     * @param ShippingCategoryInterface $shippingCategory
90
+     *
91
+     * @return void
92
+     */
51 93
     public function setShippingCategory(?ShippingCategoryInterface $shippingCategory): void;
52 94
 
53 95
     /**
@@ -61,11 +103,20 @@  discard block
 block discarded – undo
61 103
 
62 104
     public function hasChannelPricing(ChannelPricingInterface $channelPricing): bool;
63 105
 
106
+    /**
107
+     * @return void
108
+     */
64 109
     public function addChannelPricing(ChannelPricingInterface $channelPricing): void;
65 110
 
111
+    /**
112
+     * @return void
113
+     */
66 114
     public function removeChannelPricing(ChannelPricingInterface $channelPricing): void;
67 115
 
68 116
     public function isShippingRequired(): bool;
69 117
 
118
+    /**
119
+     * @return void
120
+     */
70 121
     public function setShippingRequired(bool $shippingRequired): void;
71 122
 }
Please login to merge, or discard this patch.