Completed
Push — scalar-types/order ( bd3d7c )
by Kamil
21:55
created
src/Sylius/Component/Order/Modifier/OrderModifierInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -24,12 +24,14 @@
 block discarded – undo
24 24
     /**
25 25
      * @param OrderInterface $cart
26 26
      * @param OrderItemInterface $cartItem
27
+     * @return void
27 28
      */
28 29
     public function addToOrder(OrderInterface $cart, OrderItemInterface $cartItem): void;
29 30
 
30 31
     /**
31 32
      * @param OrderInterface $cart
32 33
      * @param OrderItemInterface $item
34
+     * @return void
33 35
      */
34 36
     public function removeFromOrder(OrderInterface $cart, OrderItemInterface $item): void;
35 37
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Processor/OrderProcessorInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param OrderInterface $order
25
+     * @return void
25 26
      */
26 27
     public function process(OrderInterface $order): void;
27 28
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Remover/ExpiredCartsRemoverInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,5 +18,8 @@
 block discarded – undo
18 18
  */
19 19
 interface ExpiredCartsRemoverInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function remove(): void;
22 25
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/StateResolver/StateResolverInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param OrderInterface $order
25
+     * @return void
25 26
      */
26 27
     public function resolve(OrderInterface $order): void;
27 28
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionTranslation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * {@inheritdoc}
51 51
      */
52
-    public function setName(?string $name): void
52
+    public function setName(?string $name) : void
53 53
     {
54 54
         $this->name = $name;
55 55
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductVariantTranslation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * {@inheritdoc}
51 51
      */
52
-    public function setName(?string $name): void
52
+    public function setName(?string $name) : void
53 53
     {
54 54
         $this->name = $name;
55 55
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderItem.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Order\Model;
15 15
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * {@inheritdoc}
108 108
      */
109
-    public function setOrder(?OrderInterface $order): void
109
+    public function setOrder(?OrderInterface $order) : void
110 110
     {
111 111
         $currentOrder = $this->getOrder();
112 112
         if ($currentOrder === $order) {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     /**
261 261
      * {@inheritdoc}
262 262
      */
263
-    public function getAdjustments(?string $type = null): Collection
263
+    public function getAdjustments(?string $type = null) : Collection
264 264
     {
265 265
         if (null === $type) {
266 266
             return $this->adjustments;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * {@inheritdoc}
276 276
      */
277
-    public function getAdjustmentsRecursively(?string $type = null): Collection
277
+    public function getAdjustmentsRecursively(?string $type = null) : Collection
278 278
     {
279 279
         $adjustments = clone $this->getAdjustments($type);
280 280
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     /**
323 323
      * {@inheritdoc}
324 324
      */
325
-    public function getAdjustmentsTotal(?string $type = null): int
325
+    public function getAdjustmentsTotal(?string $type = null) : int
326 326
     {
327 327
         if (null === $type) {
328 328
             return $this->adjustmentsTotal;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * {@inheritdoc}
343 343
      */
344
-    public function getAdjustmentsTotalRecursively(?string $type = null): int
344
+    public function getAdjustmentsTotalRecursively(?string $type = null) : int
345 345
     {
346 346
         $total = 0;
347 347
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     /**
358 358
      * {@inheritdoc}
359 359
      */
360
-    public function removeAdjustments(?string $type = null): void
360
+    public function removeAdjustments(?string $type = null) : void
361 361
     {
362 362
         foreach ($this->getAdjustments($type) as $adjustment) {
363 363
             $this->removeAdjustment($adjustment);
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     /**
368 368
      * {@inheritdoc}
369 369
      */
370
-    public function removeAdjustmentsRecursively(?string $type = null): void
370
+    public function removeAdjustmentsRecursively(?string $type = null) : void
371 371
     {
372 372
         $this->removeAdjustments($type);
373 373
         foreach ($this->units as $unit) {
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderItemUnit.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Order\Model;
15 15
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * {@inheritdoc}
88 88
      */
89
-    public function getAdjustments(?string $type = null): Collection
89
+    public function getAdjustments(?string $type = null) : Collection
90 90
     {
91 91
         if (null === $type) {
92 92
             return $this->adjustments;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * {@inheritdoc}
140 140
      */
141
-    public function getAdjustmentsTotal(?string $type = null): int
141
+    public function getAdjustmentsTotal(?string $type = null) : int
142 142
     {
143 143
         if (null === $type) {
144 144
             return $this->adjustmentsTotal;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * {@inheritdoc}
159 159
      */
160
-    public function removeAdjustments(?string $type = null): void
160
+    public function removeAdjustments(?string $type = null) : void
161 161
     {
162 162
         foreach ($this->getAdjustments($type) as $adjustment) {
163 163
             $this->removeAdjustment($adjustment);
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/Order.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Order\Model;
15 15
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * {@inheritdoc}
104 104
      */
105
-    public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void
105
+    public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt) : void
106 106
     {
107 107
         $this->checkoutCompletedAt = $checkoutCompletedAt;
108 108
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * {@inheritdoc}
136 136
      */
137
-    public function setNumber(?string $number): void
137
+    public function setNumber(?string $number) : void
138 138
     {
139 139
         $this->number = $number;
140 140
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * {@inheritdoc}
152 152
      */
153
-    public function setNotes(?string $notes): void
153
+    public function setNotes(?string $notes) : void
154 154
     {
155 155
         $this->notes = $notes;
156 156
     }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     /**
289 289
      * {@inheritdoc}
290 290
      */
291
-    public function getAdjustments(?string $type = null): Collection
291
+    public function getAdjustments(?string $type = null) : Collection
292 292
     {
293 293
         if (null === $type) {
294 294
             return $this->adjustments;
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     /**
303 303
      * {@inheritdoc}
304 304
      */
305
-    public function getAdjustmentsRecursively(?string $type = null): Collection
305
+    public function getAdjustmentsRecursively(?string $type = null) : Collection
306 306
     {
307 307
         $adjustments = clone $this->getAdjustments($type);
308 308
         foreach ($this->items as $item) {
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     /**
350 350
      * {@inheritdoc}
351 351
      */
352
-    public function getAdjustmentsTotal(?string $type = null): int
352
+    public function getAdjustmentsTotal(?string $type = null) : int
353 353
     {
354 354
         if (null === $type) {
355 355
             return $this->adjustmentsTotal;
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     /**
369 369
      * {@inheritdoc}
370 370
      */
371
-    public function getAdjustmentsTotalRecursively(?string $type = null): int
371
+    public function getAdjustmentsTotalRecursively(?string $type = null) : int
372 372
     {
373 373
         $total = 0;
374 374
         foreach ($this->getAdjustmentsRecursively($type) as $adjustment) {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
     /**
384 384
      * {@inheritdoc}
385 385
      */
386
-    public function removeAdjustments(?string $type = null): void
386
+    public function removeAdjustments(?string $type = null) : void
387 387
     {
388 388
         foreach ($this->getAdjustments($type) as $adjustment) {
389 389
             if ($adjustment->isLocked()) {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     /**
398 398
      * {@inheritdoc}
399 399
      */
400
-    public function removeAdjustmentsRecursively(?string $type = null): void
400
+    public function removeAdjustmentsRecursively(?string $type = null) : void
401 401
     {
402 402
         $this->removeAdjustments($type);
403 403
         foreach ($this->items as $item) {
Please login to merge, or discard this patch.