Completed
Push — sf-44 ( 549cb7 )
by Kamil
74:58 queued 49:21
created
Sylius/Component/Product/Model/ProductOptionValueTranslationInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,7 +18,13 @@
 block discarded – undo
18 18
 
19 19
 interface ProductOptionValueTranslationInterface extends ResourceInterface, TranslationInterface
20 20
 {
21
+    /**
22
+     * @return string|null
23
+     */
21 24
     public function getValue(): ?string;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function setValue(?string $value): void;
24 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductTranslationInterface.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -19,19 +19,43 @@
 block discarded – undo
19 19
 
20 20
 interface ProductTranslationInterface extends SlugAwareInterface, ResourceInterface, TranslationInterface
21 21
 {
22
+    /**
23
+     * @return string|null
24
+     */
22 25
     public function getName(): ?string;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setName(?string $name): void;
25 31
 
32
+    /**
33
+     * @return string|null
34
+     */
26 35
     public function getDescription(): ?string;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function setDescription(?string $description): void;
29 41
 
42
+    /**
43
+     * @return string|null
44
+     */
30 45
     public function getMetaKeywords(): ?string;
31 46
 
47
+    /**
48
+     * @return void
49
+     */
32 50
     public function setMetaKeywords(?string $metaKeywords): void;
33 51
 
52
+    /**
53
+     * @return string|null
54
+     */
34 55
     public function getMetaDescription(): ?string;
35 56
 
57
+    /**
58
+     * @return void
59
+     */
36 60
     public function setMetaDescription(?string $metaDescription): void;
37 61
 }
Please login to merge, or discard this patch.
Promotion/Generator/PromotionCouponGeneratorInstructionInterface.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -15,30 +15,64 @@
 block discarded – undo
15 15
 
16 16
 interface PromotionCouponGeneratorInstructionInterface
17 17
 {
18
+    /**
19
+     * @return integer
20
+     */
18 21
     public function getAmount(): ?int;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setAmount(?int $amount): void;
21 27
 
28
+    /**
29
+     * @return string|null
30
+     */
22 31
     public function getPrefix(): ?string;
23 32
 
33
+    /**
34
+     * @return void
35
+     */
24 36
     public function setPrefix(?string $prefix): void;
25 37
 
38
+    /**
39
+     * @return integer
40
+     */
26 41
     public function getCodeLength(): ?int;
27 42
 
43
+    /**
44
+     * @return void
45
+     */
28 46
     public function setCodeLength(?int $codeLength): void;
29 47
 
48
+    /**
49
+     * @return string|null
50
+     */
30 51
     public function getSuffix(): ?string;
31 52
 
53
+    /**
54
+     * @return void
55
+     */
32 56
     public function setSuffix(?string $suffix): void;
33 57
 
58
+    /**
59
+     * @return \DateTimeInterface|null
60
+     */
34 61
     public function getExpiresAt(): ?\DateTimeInterface;
35 62
 
36 63
     /**
37 64
      * @param \DateTimeInterface $expiresAt
65
+     * @return void
38 66
      */
39 67
     public function setExpiresAt(?\DateTimeInterface $expiresAt): void;
40 68
 
69
+    /**
70
+     * @return integer|null
71
+     */
41 72
     public function getUsageLimit(): ?int;
42 73
 
74
+    /**
75
+     * @return void
76
+     */
43 77
     public function setUsageLimit(int $usageLimit): void;
44 78
 }
Please login to merge, or discard this patch.
Sylius/Component/Promotion/Model/ConfigurablePromotionElementInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,9 +17,15 @@
 block discarded – undo
17 17
 
18 18
 interface ConfigurablePromotionElementInterface extends ResourceInterface
19 19
 {
20
+    /**
21
+     * @return string|null
22
+     */
20 23
     public function getType(): ?string;
21 24
 
22 25
     public function getConfiguration(): array;
23 26
 
27
+    /**
28
+     * @return PromotionInterface|null
29
+     */
24 30
     public function getPromotion(): ?PromotionInterface;
25 31
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -19,16 +19,31 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface PromotionCouponInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface
21 21
 {
22
+    /**
23
+     * @return integer|null
24
+     */
22 25
     public function getUsageLimit(): ?int;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setUsageLimit(?int $usageLimit): void;
25 31
 
26 32
     public function getUsed(): int;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function setUsed(int $used): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function incrementUsed(): void;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function decrementUsed(): void;
33 48
 
34 49
     /**
@@ -36,12 +51,19 @@  discard block
 block discarded – undo
36 51
      */
37 52
     public function getPromotion(): ?PromotionInterface;
38 53
 
54
+    /**
55
+     * @return void
56
+     */
39 57
     public function setPromotion(?PromotionInterface $promotion): void;
40 58
 
59
+    /**
60
+     * @return \DateTimeInterface|null
61
+     */
41 62
     public function getExpiresAt(): ?\DateTimeInterface;
42 63
 
43 64
     /**
44 65
      * @param \DateTimeInterface $expiresAt
66
+     * @return void
45 67
      */
46 68
     public function setExpiresAt(?\DateTimeInterface $expiresAt): void;
47 69
 
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Model/ShippingMethodTranslationInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -18,11 +18,23 @@
 block discarded – undo
18 18
 
19 19
 interface ShippingMethodTranslationInterface extends ResourceInterface, TranslationInterface
20 20
 {
21
+    /**
22
+     * @return string|null
23
+     */
21 24
     public function getName(): ?string;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function setName(?string $name): void;
24 30
 
31
+    /**
32
+     * @return string|null
33
+     */
25 34
     public function getDescription(): ?string;
26 35
 
36
+    /**
37
+     * @return void
38
+     */
27 39
     public function setDescription(?string $description): void;
28 40
 }
Please login to merge, or discard this patch.
Component/Promotion/Model/PromotionCouponAwarePromotionSubjectInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,5 +15,8 @@
 block discarded – undo
15 15
 
16 16
 interface PromotionCouponAwarePromotionSubjectInterface extends PromotionSubjectInterface
17 17
 {
18
+    /**
19
+     * @return PromotionCouponInterface|null
20
+     */
18 21
     public function getPromotionCoupon(): ?PromotionCouponInterface;
19 22
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Model/ShipmentInterface.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -27,12 +27,24 @@  discard block
 block discarded – undo
27 27
 
28 28
     public const STATE_CANCELLED = 'cancelled';
29 29
 
30
+    /**
31
+     * @return string
32
+     */
30 33
     public function getState(): ?string;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function setState(?string $state): void;
33 39
 
40
+    /**
41
+     * @return ShippingMethodInterface|null
42
+     */
34 43
     public function getMethod(): ?ShippingMethodInterface;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function setMethod(?ShippingMethodInterface $method): void;
37 49
 
38 50
     /**
@@ -40,14 +52,26 @@  discard block
 block discarded – undo
40 52
      */
41 53
     public function getUnits(): Collection;
42 54
 
55
+    /**
56
+     * @return void
57
+     */
43 58
     public function addUnit(ShipmentUnitInterface $unit): void;
44 59
 
60
+    /**
61
+     * @return void
62
+     */
45 63
     public function removeUnit(ShipmentUnitInterface $unit): void;
46 64
 
47 65
     public function hasUnit(ShipmentUnitInterface $unit): bool;
48 66
 
67
+    /**
68
+     * @return string|null
69
+     */
49 70
     public function getTracking(): ?string;
50 71
 
72
+    /**
73
+     * @return void
74
+     */
51 75
     public function setTracking(?string $tracking): void;
52 76
 
53 77
     public function isTracked(): bool;
Please login to merge, or discard this patch.
etc/psalm/ZendPriorityQueueStub.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @param mixed $datum
43 43
      *
44
-     * @return bool False if the item was not found, true otherwise.
44
+     * @return boolean|null False if the item was not found, true otherwise.
45 45
      *
46 46
      * @psalm-param T $datum
47 47
      */
48 48
     public function remove($datum) { }
49 49
 
50 50
     /**
51
-     * @return bool
51
+     * @return boolean|null
52 52
      */
53 53
     public function isEmpty() { }
54 54
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param mixed $datum
107 107
      *
108
-     * @return bool
108
+     * @return boolean|null
109 109
      *
110 110
      * @psalm-param T $datum
111 111
      */
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * @param int $priority
116 116
      *
117
-     * @return bool
117
+     * @return boolean|null
118 118
      */
119 119
     public function hasPriority($priority) { }
120 120
 
Please login to merge, or discard this patch.
Braces   +42 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@  discard block
 block discarded – undo
36 36
      * @psalm-param T $data
37 37
      * @psalm-return PriorityQueue<T>
38 38
      */
39
-    public function insert($data, $priority = 1) { }
39
+    public function insert($data, $priority = 1)
40
+    {
41
+}
40 42
 
41 43
     /**
42 44
      * @param mixed $datum
@@ -45,53 +47,71 @@  discard block
 block discarded – undo
45 47
      *
46 48
      * @psalm-param T $datum
47 49
      */
48
-    public function remove($datum) { }
50
+    public function remove($datum)
51
+    {
52
+}
49 53
 
50 54
     /**
51 55
      * @return bool
52 56
      */
53
-    public function isEmpty() { }
57
+    public function isEmpty()
58
+    {
59
+}
54 60
 
55 61
     /**
56 62
      * @return int
57 63
      */
58
-    public function count() { }
64
+    public function count()
65
+    {
66
+}
59 67
 
60 68
     /**
61 69
      * @return mixed
62 70
      */
63
-    public function top() { }
71
+    public function top()
72
+    {
73
+}
64 74
 
65 75
     /**
66 76
      * @return mixed
67 77
      */
68
-    public function extract() { }
78
+    public function extract()
79
+    {
80
+}
69 81
 
70 82
     /**
71 83
      * @return SplPriorityQueue
72 84
      *
73 85
      * @psalm-return SplPriorityQueue<T>
74 86
      */
75
-    public function getIterator() { }
87
+    public function getIterator()
88
+    {
89
+}
76 90
 
77 91
     /**
78 92
      * @return string
79 93
      */
80
-    public function serialize() { }
94
+    public function serialize()
95
+    {
96
+}
81 97
 
82 98
     /**
83 99
      * @param string $data
84 100
      *
85 101
      * @return void
86 102
      */
87
-    public function unserialize($data) { }
103
+    public function unserialize($data)
104
+    {
105
+}
88 106
 
89 107
     /**
90 108
      * @param int $flag
91 109
      *
92 110
      * @return array
93 111
      */
94
-    public function toArray($flag = self::EXTR_DATA) { }
112
+    public function toArray($flag = self::EXTR_DATA)
113
+    {
114
+}
95 115
 
96 116
     /**
97 117
      * @param string $class
@@ -100,7 +120,9 @@  discard block
 block discarded – undo
100 120
      *
101 121
      * @psalm-return PriorityQueue<T>
102 122
      */
103
-    public function setInternalQueueClass($class) { }
123
+    public function setInternalQueueClass($class)
124
+    {
125
+}
104 126
 
105 127
     /**
106 128
      * @param mixed $datum
@@ -109,17 +131,23 @@  discard block
 block discarded – undo
109 131
      *
110 132
      * @psalm-param T $datum
111 133
      */
112
-    public function contains($datum) { }
134
+    public function contains($datum)
135
+    {
136
+}
113 137
 
114 138
     /**
115 139
      * @param int $priority
116 140
      *
117 141
      * @return bool
118 142
      */
119
-    public function hasPriority($priority) { }
143
+    public function hasPriority($priority)
144
+    {
145
+}
120 146
 
121 147
     /**
122 148
      * @return void
123 149
      */
124
-    public function __clone() { }
150
+    public function __clone()
151
+    {
152
+}
125 153
 }
Please login to merge, or discard this patch.