Completed
Push — new-template-events-architectu... ( 533634 )
by Kamil
05:23
created
tests/Controller/TaxonApiTest.php 1 patch
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 }
185 185
             }
186 186
         }
187
-EOT;
187
+eot;
188 188
 
189 189
         $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data);
190 190
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         {
205 205
             "code": "fluffy_pets"
206 206
         }
207
-EOT;
207
+eot;
208 208
 
209 209
         $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data);
210 210
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                 }
238 238
             }
239 239
         }
240
-EOT;
240
+eot;
241 241
 
242 242
         $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data);
243 243
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             "code": "horror",
261 261
             "parent": "books"
262 262
         }
263
-EOT;
263
+eot;
264 264
 
265 265
         $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data);
266 266
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
                 }
302 302
             ]
303 303
         }
304
-EOT;
304
+eot;
305 305
 
306 306
         $this->client->request('POST', '/api/v1/taxons/', [], [
307 307
             'images' => [
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
             },
336 336
             "parent": "books"
337 337
         }
338
-EOT;
338
+eot;
339 339
         $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
340 340
         $response = $this->client->getResponse();
341 341
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
                 }
363 363
             }
364 364
         }
365
-EOT;
365
+eot;
366 366
         $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
367 367
         $response = $this->client->getResponse();
368 368
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
                 }
390 390
             }
391 391
         }
392
-EOT;
392
+eot;
393 393
         $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
394 394
         $response = $this->client->getResponse();
395 395
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                 }
416 416
             }
417 417
         }
418
-EOT;
418
+eot;
419 419
         $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
420 420
         $response = $this->client->getResponse();
421 421
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 }
462 462
             ]
463 463
         }
464
-EOT;
464
+eot;
465 465
 
466 466
         $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
467 467
 
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
                 }
492 492
             ]
493 493
         }
494
-EOT;
494
+eot;
495 495
 
496 496
         $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
497 497
 
Please login to merge, or discard this patch.
tests/Controller/CheckoutPaymentApiTest.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 }
85 85
             ]
86 86
         }
87
-EOT;
87
+eot;
88 88
 
89 89
         $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
90 90
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 }
175 175
             ]
176 176
         }
177
-EOT;
177
+eot;
178 178
 
179 179
         $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
180 180
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 }
216 216
             ]
217 217
         }
218
-EOT;
218
+eot;
219 219
 
220 220
         $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
221 221
 
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.
tests/Controller/ZoneApiTest.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 }
85 85
             ]
86 86
         }
87
-EOT;
87
+eot;
88 88
 
89 89
         $this->client->request('POST', '/api/v1/zones/country', [], [], static::$authorizedHeaderWithContentType, $data);
90 90
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                 }
215 215
             ]
216 216
         }
217
-EOT;
217
+eot;
218 218
 
219 219
         $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
220 220
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         {
266 266
             "name": "European Union +"
267 267
         }
268
-EOT;
268
+eot;
269 269
 
270 270
         $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
271 271
 
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.
src/Sylius/Component/Core/Model/ShippingMethodInterface.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use Sylius\Component\Addressing\Model\ZoneInterface;
17 17
 use Sylius\Component\Channel\Model\ChannelsAwareInterface;
18 18
 use Sylius\Component\Shipping\Model\ShippingMethodInterface as BaseShippingMethodInterface;
19
-use Sylius\Component\Taxation\Model\TaxableInterface;
20 19
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
20
+use Sylius\Component\Taxation\Model\TaxableInterface;
21 21
 
22 22
 interface ShippingMethodInterface extends BaseShippingMethodInterface, TaxableInterface, ChannelsAwareInterface
23 23
 {
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -21,9 +21,18 @@
 block discarded – undo
21 21
 
22 22
 interface ShippingMethodInterface extends BaseShippingMethodInterface, TaxableInterface, ChannelsAwareInterface
23 23
 {
24
+    /**
25
+     * @return ZoneInterface
26
+     */
24 27
     public function getZone(): ?ZoneInterface;
25 28
 
29
+    /**
30
+     * @return void
31
+     */
26 32
     public function setZone(?ZoneInterface $zone): void;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function setTaxCategory(?TaxCategoryInterface $category): void;
29 38
 }
Please login to merge, or discard this patch.