Completed
Push — master ( 245a8a...f0e674 )
by Kamil
47:42 queued 24:32
created
src/Sylius/Bundle/ResourceBundle/Controller/RequestConfiguration.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @param $name
157
+     * @param string $name
158 158
      *
159 159
      * @return string
160 160
      */
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * @param string $name
170 170
      *
171
-     * @return mixed|string|null
171
+     * @return string
172 172
      */
173 173
     public function getRedirectRoute($name)
174 174
     {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
 
230 230
     /**
231
-     * @param object|null $resource
231
+     * @param \Sylius\Component\Resource\Model\ResourceInterface|null $resource
232 232
      *
233 233
      * @return array
234 234
      */
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
     }
476 476
 
477 477
     /**
478
-     * @return mixed|null
478
+     * @return string
479 479
      */
480 480
     public function getSerializationVersion()
481 481
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderInterface.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * @param AddressInterface|null $address
46
+     * @return void
46 47
      */
47 48
     public function setShippingAddress(?AddressInterface $address): void;
48 49
 
@@ -53,6 +54,7 @@  discard block
 block discarded – undo
53 54
 
54 55
     /**
55 56
      * @param AddressInterface|null $address
57
+     * @return void
56 58
      */
57 59
     public function setBillingAddress(?AddressInterface $address): void;
58 60
 
@@ -63,6 +65,7 @@  discard block
 block discarded – undo
63 65
 
64 66
     /**
65 67
      * @param string|null $checkoutState
68
+     * @return void
66 69
      */
67 70
     public function setCheckoutState(?string $checkoutState): void;
68 71
 
@@ -73,6 +76,7 @@  discard block
 block discarded – undo
73 76
 
74 77
     /**
75 78
      * @param string|null $paymentState
79
+     * @return void
76 80
      */
77 81
     public function setPaymentState(?string $paymentState): void;
78 82
 
@@ -105,14 +109,19 @@  discard block
 block discarded – undo
105 109
 
106 110
     /**
107 111
      * @param ShipmentInterface $shipment
112
+     * @return void
108 113
      */
109 114
     public function addShipment(ShipmentInterface $shipment): void;
110 115
 
111 116
     /**
112 117
      * @param ShipmentInterface $shipment
118
+     * @return void
113 119
      */
114 120
     public function removeShipment(ShipmentInterface $shipment): void;
115 121
 
122
+    /**
123
+     * @return void
124
+     */
116 125
     public function removeShipments(): void;
117 126
 
118 127
     /**
@@ -129,6 +138,7 @@  discard block
 block discarded – undo
129 138
 
130 139
     /**
131 140
      * @param string|null $currencyCode
141
+     * @return void
132 142
      */
133 143
     public function setCurrencyCode(?string $currencyCode): void;
134 144
 
@@ -139,11 +149,13 @@  discard block
 block discarded – undo
139 149
 
140 150
     /**
141 151
      * @param string|null $localeCode
152
+     * @return void
142 153
      */
143 154
     public function setLocaleCode(?string $localeCode): void;
144 155
 
145 156
     /**
146 157
      * @param BaseCouponInterface|null $coupon
158
+     * @return void
147 159
      */
148 160
     public function setPromotionCoupon(?BaseCouponInterface $coupon): void;
149 161
 
@@ -154,6 +166,7 @@  discard block
 block discarded – undo
154 166
 
155 167
     /**
156 168
      * @param string|null $state
169
+     * @return void
157 170
      */
158 171
     public function setShippingState(?string $state): void;
159 172
 
@@ -186,6 +199,7 @@  discard block
 block discarded – undo
186 199
 
187 200
     /**
188 201
      * @param string|null $tokenValue
202
+     * @return void
189 203
      */
190 204
     public function setTokenValue(?string $tokenValue): void;
191 205
 
@@ -196,6 +210,7 @@  discard block
 block discarded – undo
196 210
 
197 211
     /**
198 212
      * @param string|null $customerIp
213
+     * @return void
199 214
      */
200 215
     public function setCustomerIp(?string $customerIp): void;
201 216
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 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\Core\Model;
15 15
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * @param AddressInterface|null $address
46 46
      */
47
-    public function setShippingAddress(?AddressInterface $address): void;
47
+    public function setShippingAddress(?AddressInterface $address) : void;
48 48
 
49 49
     /**
50 50
      * @return AddressInterface|null
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @param AddressInterface|null $address
56 56
      */
57
-    public function setBillingAddress(?AddressInterface $address): void;
57
+    public function setBillingAddress(?AddressInterface $address) : void;
58 58
 
59 59
     /**
60 60
      * @return string|null
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * @param string|null $checkoutState
66 66
      */
67
-    public function setCheckoutState(?string $checkoutState): void;
67
+    public function setCheckoutState(?string $checkoutState) : void;
68 68
 
69 69
     /**
70 70
      * @return string|null
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * @param string|null $paymentState
76 76
      */
77
-    public function setPaymentState(?string $paymentState): void;
77
+    public function setPaymentState(?string $paymentState) : void;
78 78
 
79 79
     /**
80 80
      * @return Collection|OrderItemUnitInterface[]
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     /**
131 131
      * @param string|null $currencyCode
132 132
      */
133
-    public function setCurrencyCode(?string $currencyCode): void;
133
+    public function setCurrencyCode(?string $currencyCode) : void;
134 134
 
135 135
     /**
136 136
      * @return string|null
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * @param string|null $localeCode
142 142
      */
143
-    public function setLocaleCode(?string $localeCode): void;
143
+    public function setLocaleCode(?string $localeCode) : void;
144 144
 
145 145
     /**
146 146
      * @param BaseCouponInterface|null $coupon
147 147
      */
148
-    public function setPromotionCoupon(?BaseCouponInterface $coupon): void;
148
+    public function setPromotionCoupon(?BaseCouponInterface $coupon) : void;
149 149
 
150 150
     /**
151 151
      * @return string|null
@@ -155,14 +155,14 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * @param string|null $state
157 157
      */
158
-    public function setShippingState(?string $state): void;
158
+    public function setShippingState(?string $state) : void;
159 159
 
160 160
     /**
161 161
      * @param string|null $state
162 162
      *
163 163
      * @return PaymentInterface|null
164 164
      */
165
-    public function getLastPayment(?string $state = null): ?PaymentInterface;
165
+    public function getLastPayment(?string $state = null) : ?PaymentInterface;
166 166
 
167 167
     /**
168 168
      * @return int
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * @param string|null $tokenValue
189 189
      */
190
-    public function setTokenValue(?string $tokenValue): void;
190
+    public function setTokenValue(?string $tokenValue) : void;
191 191
 
192 192
     /**
193 193
      * @return string|null
@@ -197,5 +197,5 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * @param string|null $customerIp
199 199
      */
200
-    public function setCustomerIp(?string $customerIp): void;
200
+    public function setCustomerIp(?string $customerIp) : void;
201 201
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductTaxonInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param ProductInterface|null $product
27
+     * @return void
27 28
      */
28 29
     public function setProduct(?ProductInterface $product): void;
29 30
 
@@ -34,6 +35,7 @@  discard block
 block discarded – undo
34 35
 
35 36
     /**
36 37
      * @param TaxonInterface|null $taxon
38
+     * @return void
37 39
      */
38 40
     public function setTaxon(?TaxonInterface $taxon): void;
39 41
 
@@ -44,6 +46,7 @@  discard block
 block discarded – undo
44 46
 
45 47
     /**
46 48
      * @param int|null $position
49
+     * @return void
47 50
      */
48 51
     public function setPosition(?int $position): void;
49 52
 }
Please login to merge, or discard this 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\Core\Model;
15 15
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * @param ProductInterface|null $product
27 27
      */
28
-    public function setProduct(?ProductInterface $product): void;
28
+    public function setProduct(?ProductInterface $product) : void;
29 29
 
30 30
     /**
31 31
      * @return TaxonInterface|null
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @param TaxonInterface|null $taxon
37 37
      */
38
-    public function setTaxon(?TaxonInterface $taxon): void;
38
+    public function setTaxon(?TaxonInterface $taxon) : void;
39 39
 
40 40
     /**
41 41
      * @return int|null
@@ -45,5 +45,5 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @param int|null $position
47 47
      */
48
-    public function setPosition(?int $position): void;
48
+    public function setPosition(?int $position) : void;
49 49
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderInterface.php 2 patches
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param \DateTimeInterface|null $checkoutCompletedAt
34
+     * @return void
34 35
      */
35 36
     public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
36 37
 
@@ -39,6 +40,9 @@  discard block
 block discarded – undo
39 40
      */
40 41
     public function isCheckoutCompleted(): bool;
41 42
 
43
+    /**
44
+     * @return void
45
+     */
42 46
     public function completeCheckout(): void;
43 47
 
44 48
     /**
@@ -48,6 +52,7 @@  discard block
 block discarded – undo
48 52
 
49 53
     /**
50 54
      * @param string|null $number
55
+     * @return void
51 56
      */
52 57
     public function setNumber(?string $number): void;
53 58
 
@@ -58,6 +63,7 @@  discard block
 block discarded – undo
58 63
 
59 64
     /**
60 65
      * @param string|null $notes
66
+     * @return void
61 67
      */
62 68
     public function setNotes(?string $notes): void;
63 69
 
@@ -66,6 +72,9 @@  discard block
 block discarded – undo
66 72
      */
67 73
     public function getItems(): Collection;
68 74
 
75
+    /**
76
+     * @return void
77
+     */
69 78
     public function clearItems(): void;
70 79
 
71 80
     /**
@@ -75,11 +84,13 @@  discard block
 block discarded – undo
75 84
 
76 85
     /**
77 86
      * @param OrderItemInterface $item
87
+     * @return void
78 88
      */
79 89
     public function addItem(OrderItemInterface $item): void;
80 90
 
81 91
     /**
82 92
      * @param OrderItemInterface $item
93
+     * @return void
83 94
      */
84 95
     public function removeItem(OrderItemInterface $item): void;
85 96
 
@@ -95,6 +106,9 @@  discard block
 block discarded – undo
95 106
      */
96 107
     public function getItemsTotal(): int;
97 108
 
109
+    /**
110
+     * @return void
111
+     */
98 112
     public function recalculateItemsTotal(): void;
99 113
 
100 114
     /**
@@ -114,6 +128,7 @@  discard block
 block discarded – undo
114 128
 
115 129
     /**
116 130
      * @param string $state
131
+     * @return void
117 132
      */
118 133
     public function setState(string $state): void;
119 134
 
@@ -138,6 +153,7 @@  discard block
 block discarded – undo
138 153
 
139 154
     /**
140 155
      * @param string|null $type
156
+     * @return void
141 157
      */
142 158
     public function removeAdjustmentsRecursively(?string $type = null): void;
143 159
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @param \DateTimeInterface|null $checkoutCompletedAt
34 34
      */
35
-    public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
35
+    public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt) : void;
36 36
 
37 37
     /**
38 38
      * @return bool
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @param string|null $number
51 51
      */
52
-    public function setNumber(?string $number): void;
52
+    public function setNumber(?string $number) : void;
53 53
 
54 54
     /**
55 55
      * @return string|null
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * @param string|null $notes
61 61
      */
62
-    public function setNotes(?string $notes): void;
62
+    public function setNotes(?string $notes) : void;
63 63
 
64 64
     /**
65 65
      * @return Collection|OrderItemInterface[]
@@ -127,17 +127,17 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @return Collection|AdjustmentInterface[]
129 129
      */
130
-    public function getAdjustmentsRecursively(?string $type = null): Collection;
130
+    public function getAdjustmentsRecursively(?string $type = null) : Collection;
131 131
 
132 132
     /**
133 133
      * @param string|null $type
134 134
      *
135 135
      * @return int
136 136
      */
137
-    public function getAdjustmentsTotalRecursively(?string $type = null): int;
137
+    public function getAdjustmentsTotalRecursively(?string $type = null) : int;
138 138
 
139 139
     /**
140 140
      * @param string|null $type
141 141
      */
142
-    public function removeAdjustmentsRecursively(?string $type = null): void;
142
+    public function removeAdjustmentsRecursively(?string $type = null) : void;
143 143
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param PaymentMethodInterface|null $method
38
+     * @return void
38 39
      */
39 40
     public function setMethod(?PaymentMethodInterface $method): void;
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param string $state
49
+     * @return void
48 50
      */
49 51
     public function setState(string $state): void;
50 52
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param string $currencyCode
60
+     * @return void
58 61
      */
59 62
     public function setCurrencyCode(string $currencyCode): void;
60 63
 
@@ -65,6 +68,7 @@  discard block
 block discarded – undo
65 68
 
66 69
     /**
67 70
      * @param int $amount
71
+     * @return void
68 72
      */
69 73
     public function setAmount(int $amount): void;
70 74
 
@@ -75,6 +79,7 @@  discard block
 block discarded – undo
75 79
 
76 80
     /**
77 81
      * @param array $details
82
+     * @return void
78 83
      */
79 84
     public function setDetails(array $details): void;
80 85
 }
Please login to merge, or discard this patch.