@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @param TaxonInterface|null $taxon |
46 | + * @return void |
|
46 | 47 | */ |
47 | 48 | public function setParent(?TaxonInterface $taxon): void; |
48 | 49 | |
@@ -70,11 +71,13 @@ discard block |
||
70 | 71 | |
71 | 72 | /** |
72 | 73 | * @param TaxonInterface $taxon |
74 | + * @return void |
|
73 | 75 | */ |
74 | 76 | public function addChild(TaxonInterface $taxon): void; |
75 | 77 | |
76 | 78 | /** |
77 | 79 | * @param TaxonInterface $taxon |
80 | + * @return void |
|
78 | 81 | */ |
79 | 82 | public function removeChild(TaxonInterface $taxon): void; |
80 | 83 | |
@@ -85,6 +88,7 @@ discard block |
||
85 | 88 | |
86 | 89 | /** |
87 | 90 | * @param string|null $name |
91 | + * @return void |
|
88 | 92 | */ |
89 | 93 | public function setName(?string $name): void; |
90 | 94 | |
@@ -95,6 +99,7 @@ discard block |
||
95 | 99 | |
96 | 100 | /** |
97 | 101 | * @param string|null $description |
102 | + * @return void |
|
98 | 103 | */ |
99 | 104 | public function setDescription(?string $description): void; |
100 | 105 | |
@@ -105,6 +110,7 @@ discard block |
||
105 | 110 | |
106 | 111 | /** |
107 | 112 | * @param int|null $left |
113 | + * @return void |
|
108 | 114 | */ |
109 | 115 | public function setLeft(?int $left): void; |
110 | 116 | |
@@ -115,6 +121,7 @@ discard block |
||
115 | 121 | |
116 | 122 | /** |
117 | 123 | * @param int|null $right |
124 | + * @return void |
|
118 | 125 | */ |
119 | 126 | public function setRight(?int $right): void; |
120 | 127 | |
@@ -125,6 +132,7 @@ discard block |
||
125 | 132 | |
126 | 133 | /** |
127 | 134 | * @param int|null $level |
135 | + * @return void |
|
128 | 136 | */ |
129 | 137 | public function setLevel(?int $level): void; |
130 | 138 | |
@@ -135,6 +143,7 @@ discard block |
||
135 | 143 | |
136 | 144 | /** |
137 | 145 | * @param int|null $position |
146 | + * @return void |
|
138 | 147 | */ |
139 | 148 | public function setPosition(?int $position): void; |
140 | 149 |
@@ -9,7 +9,7 @@ discard block |
||
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\Taxonomy\Model; |
15 | 15 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * @param TaxonInterface|null $taxon |
46 | 46 | */ |
47 | - public function setParent(?TaxonInterface $taxon): void; |
|
47 | + public function setParent(?TaxonInterface $taxon) : void; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @return Collection|TaxonInterface[] |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * @param string|null $name |
88 | 88 | */ |
89 | - public function setName(?string $name): void; |
|
89 | + public function setName(?string $name) : void; |
|
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @return string|null |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * @param string|null $description |
98 | 98 | */ |
99 | - public function setDescription(?string $description): void; |
|
99 | + public function setDescription(?string $description) : void; |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * @return int|null |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * @param int|null $left |
108 | 108 | */ |
109 | - public function setLeft(?int $left): void; |
|
109 | + public function setLeft(?int $left) : void; |
|
110 | 110 | |
111 | 111 | /** |
112 | 112 | * @return int|null |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * @param int|null $right |
118 | 118 | */ |
119 | - public function setRight(?int $right): void; |
|
119 | + public function setRight(?int $right) : void; |
|
120 | 120 | |
121 | 121 | /** |
122 | 122 | * @return int|null |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * @param int|null $level |
128 | 128 | */ |
129 | - public function setLevel(?int $level): void; |
|
129 | + public function setLevel(?int $level) : void; |
|
130 | 130 | |
131 | 131 | /** |
132 | 132 | * @return int|null |
@@ -136,12 +136,12 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * @param int|null $position |
138 | 138 | */ |
139 | - public function setPosition(?int $position): void; |
|
139 | + public function setPosition(?int $position) : void; |
|
140 | 140 | |
141 | 141 | /** |
142 | 142 | * @param string|null $locale |
143 | 143 | * |
144 | 144 | * @return TaxonTranslationInterface |
145 | 145 | */ |
146 | - public function getTranslation(?string $locale = null): TranslationInterface; |
|
146 | + public function getTranslation(?string $locale = null) : TranslationInterface; |
|
147 | 147 | } |
@@ -9,7 +9,7 @@ discard block |
||
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\Shipping\Model; |
15 | 15 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * {@inheritdoc} |
102 | 102 | */ |
103 | - public function setCode(?string $code): void |
|
103 | + public function setCode(?string $code) : void |
|
104 | 104 | { |
105 | 105 | $this->code = $code; |
106 | 106 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * {@inheritdoc} |
118 | 118 | */ |
119 | - public function setPosition(?int $position): void |
|
119 | + public function setPosition(?int $position) : void |
|
120 | 120 | { |
121 | 121 | $this->position = $position; |
122 | 122 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * {@inheritdoc} |
134 | 134 | */ |
135 | - public function setCategory(?ShippingCategoryInterface $category): void |
|
135 | + public function setCategory(?ShippingCategoryInterface $category) : void |
|
136 | 136 | { |
137 | 137 | $this->category = $category; |
138 | 138 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * {@inheritdoc} |
150 | 150 | */ |
151 | - public function setCategoryRequirement(?int $categoryRequirement): void |
|
151 | + public function setCategoryRequirement(?int $categoryRequirement) : void |
|
152 | 152 | { |
153 | 153 | $this->categoryRequirement = $categoryRequirement; |
154 | 154 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * {@inheritdoc} |
166 | 166 | */ |
167 | - public function setName(?string $name): void |
|
167 | + public function setName(?string $name) : void |
|
168 | 168 | { |
169 | 169 | $this->getTranslation()->setName($name); |
170 | 170 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * {@inheritdoc} |
182 | 182 | */ |
183 | - public function setDescription(?string $description): void |
|
183 | + public function setDescription(?string $description) : void |
|
184 | 184 | { |
185 | 185 | $this->getTranslation()->setDescription($description); |
186 | 186 | } |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * {@inheritdoc} |
198 | 198 | */ |
199 | - public function setCalculator(?string $calculator): void |
|
199 | + public function setCalculator(?string $calculator) : void |
|
200 | 200 | { |
201 | 201 | $this->calculator = $calculator; |
202 | 202 | } |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return ShippingMethodTranslationInterface |
224 | 224 | */ |
225 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
225 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
226 | 226 | { |
227 | 227 | /** @var ShippingMethodTranslationInterface $translation */ |
228 | 228 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * {@inheritdoc} |
81 | 81 | */ |
82 | - public function setCode(?string $code): void |
|
82 | + public function setCode(?string $code) : void |
|
83 | 83 | { |
84 | 84 | $this->code = $code; |
85 | 85 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * {@inheritdoc} |
97 | 97 | */ |
98 | - public function setName(?string $name): void |
|
98 | + public function setName(?string $name) : void |
|
99 | 99 | { |
100 | 100 | $this->getTranslation()->setName($name); |
101 | 101 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @return ProductAssociationTypeTranslationInterface |
107 | 107 | */ |
108 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
108 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
109 | 109 | { |
110 | 110 | /** @var ProductAssociationTypeTranslationInterface $translation */ |
111 | 111 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * {@inheritdoc} |
75 | 75 | */ |
76 | - public function setCode(?string $code): void |
|
76 | + public function setCode(?string $code) : void |
|
77 | 77 | { |
78 | 78 | $this->code = $code; |
79 | 79 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * {@inheritdoc} |
91 | 91 | */ |
92 | - public function setOption(?ProductOptionInterface $option): void |
|
92 | + public function setOption(?ProductOptionInterface $option) : void |
|
93 | 93 | { |
94 | 94 | $this->option = $option; |
95 | 95 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * {@inheritdoc} |
107 | 107 | */ |
108 | - public function setValue(?string $value): void |
|
108 | + public function setValue(?string $value) : void |
|
109 | 109 | { |
110 | 110 | $this->getTranslation()->setValue($value); |
111 | 111 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * |
148 | 148 | * @return ProductOptionValueTranslationInterface |
149 | 149 | */ |
150 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
150 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
151 | 151 | { |
152 | 152 | /** @var ProductOptionValueTranslationInterface $translation */ |
153 | 153 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * @param string $code |
104 | 104 | */ |
105 | - public function setCode(?string $code): void |
|
105 | + public function setCode(?string $code) : void |
|
106 | 106 | { |
107 | 107 | $this->code = $code; |
108 | 108 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * {@inheritdoc} |
120 | 120 | */ |
121 | - public function setName(?string $name): void |
|
121 | + public function setName(?string $name) : void |
|
122 | 122 | { |
123 | 123 | $this->getTranslation()->setName($name); |
124 | 124 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * {@inheritdoc} |
136 | 136 | */ |
137 | - public function setSlug(?string $slug): void |
|
137 | + public function setSlug(?string $slug) : void |
|
138 | 138 | { |
139 | 139 | $this->getTranslation()->setSlug($slug); |
140 | 140 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * {@inheritdoc} |
152 | 152 | */ |
153 | - public function setDescription(?string $description): void |
|
153 | + public function setDescription(?string $description) : void |
|
154 | 154 | { |
155 | 155 | $this->getTranslation()->setDescription($description); |
156 | 156 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * {@inheritdoc} |
168 | 168 | */ |
169 | - public function setMetaKeywords(?string $metaKeywords): void |
|
169 | + public function setMetaKeywords(?string $metaKeywords) : void |
|
170 | 170 | { |
171 | 171 | $this->getTranslation()->setMetaKeywords($metaKeywords); |
172 | 172 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * {@inheritdoc} |
184 | 184 | */ |
185 | - public function setMetaDescription(?string $metaDescription): void |
|
185 | + public function setMetaDescription(?string $metaDescription) : void |
|
186 | 186 | { |
187 | 187 | $this->getTranslation()->setMetaDescription($metaDescription); |
188 | 188 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | string $localeCode, |
200 | 200 | string $fallbackLocaleCode, |
201 | 201 | ?string $baseLocaleCode = null |
202 | - ): Collection { |
|
202 | + ) : Collection { |
|
203 | 203 | if (null === $baseLocaleCode || $baseLocaleCode === $fallbackLocaleCode) { |
204 | 204 | $baseLocaleCode = $fallbackLocaleCode; |
205 | 205 | $fallbackLocaleCode = null; |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * {@inheritdoc} |
224 | 224 | */ |
225 | - public function addAttribute(?AttributeValueInterface $attribute): void |
|
225 | + public function addAttribute(?AttributeValueInterface $attribute) : void |
|
226 | 226 | { |
227 | 227 | Assert::isInstanceOf( |
228 | 228 | $attribute, |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * {@inheritdoc} |
241 | 241 | */ |
242 | - public function removeAttribute(?AttributeValueInterface $attribute): void |
|
242 | + public function removeAttribute(?AttributeValueInterface $attribute) : void |
|
243 | 243 | { |
244 | 244 | Assert::isInstanceOf( |
245 | 245 | $attribute, |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | /** |
265 | 265 | * {@inheritdoc} |
266 | 266 | */ |
267 | - public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): bool |
|
267 | + public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : bool |
|
268 | 268 | { |
269 | 269 | $localeCode = $localeCode ?: $this->getTranslation()->getLocale(); |
270 | 270 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * {@inheritdoc} |
283 | 283 | */ |
284 | - public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): ?AttributeValueInterface |
|
284 | + public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : ?AttributeValueInterface |
|
285 | 285 | { |
286 | 286 | if (null === $localeCode) { |
287 | 287 | $localeCode = $this->getTranslation()->getLocale(); |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | * |
447 | 447 | * @return ProductTranslationInterface |
448 | 448 | */ |
449 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
449 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
450 | 450 | { |
451 | 451 | /** @var ProductTranslationInterface $translation */ |
452 | 452 | $translation = $this->doGetTranslation($locale); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | ProductAttributeValueInterface $attributeValue, |
474 | 474 | string $localeCode, |
475 | 475 | ?string $fallbackLocaleCode = null |
476 | - ): AttributeValueInterface { |
|
476 | + ) : AttributeValueInterface { |
|
477 | 477 | if (!$this->hasNotEmptyAttributeByCodeAndLocale($attributeValue->getCode(), $localeCode)) { |
478 | 478 | if ( |
479 | 479 | null !== $fallbackLocaleCode && |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * {@inheritdoc} |
88 | 88 | */ |
89 | - public function setCode(?string $code): void |
|
89 | + public function setCode(?string $code) : void |
|
90 | 90 | { |
91 | 91 | $this->code = $code; |
92 | 92 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * {@inheritdoc} |
104 | 104 | */ |
105 | - public function setName(?string $name): void |
|
105 | + public function setName(?string $name) : void |
|
106 | 106 | { |
107 | 107 | $this->getTranslation()->setName($name); |
108 | 108 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * {@inheritdoc} |
120 | 120 | */ |
121 | - public function setPosition(?int $position): void |
|
121 | + public function setPosition(?int $position) : void |
|
122 | 122 | { |
123 | 123 | $this->position = $position; |
124 | 124 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * @return ProductOptionTranslationInterface |
168 | 168 | */ |
169 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
169 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
170 | 170 | { |
171 | 171 | /** @var ProductOptionTranslationInterface $translation */ |
172 | 172 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * {@inheritdoc} |
84 | 84 | */ |
85 | - public function setCode(?string $code): void |
|
85 | + public function setCode(?string $code) : void |
|
86 | 86 | { |
87 | 87 | $this->code = $code; |
88 | 88 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * {@inheritdoc} |
100 | 100 | */ |
101 | - public function setName(?string $name): void |
|
101 | + public function setName(?string $name) : void |
|
102 | 102 | { |
103 | 103 | $this->getTranslation()->setName($name); |
104 | 104 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * {@inheritdoc} |
162 | 162 | */ |
163 | - public function setProduct(?ProductInterface $product): void |
|
163 | + public function setProduct(?ProductInterface $product) : void |
|
164 | 164 | { |
165 | 165 | $this->product = $product; |
166 | 166 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * {@inheritdoc} |
178 | 178 | */ |
179 | - public function setPosition(?int $position): void |
|
179 | + public function setPosition(?int $position) : void |
|
180 | 180 | { |
181 | 181 | $this->position = $position; |
182 | 182 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @return ProductVariantTranslationInterface |
188 | 188 | */ |
189 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
189 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
190 | 190 | { |
191 | 191 | /** @var ProductVariantTranslationInterface $translation */ |
192 | 192 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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\Payment\Model; |
15 | 15 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * {@inheritdoc} |
85 | 85 | */ |
86 | - public function setCode(?string $code): void |
|
86 | + public function setCode(?string $code) : void |
|
87 | 87 | { |
88 | 88 | $this->code = $code; |
89 | 89 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * {@inheritdoc} |
101 | 101 | */ |
102 | - public function setName(?string $name): void |
|
102 | + public function setName(?string $name) : void |
|
103 | 103 | { |
104 | 104 | $this->getTranslation()->setName($name); |
105 | 105 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * {@inheritdoc} |
117 | 117 | */ |
118 | - public function setDescription(?string $description): void |
|
118 | + public function setDescription(?string $description) : void |
|
119 | 119 | { |
120 | 120 | $this->getTranslation()->setDescription($description); |
121 | 121 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * {@inheritdoc} |
133 | 133 | */ |
134 | - public function setInstructions(?string $instructions): void |
|
134 | + public function setInstructions(?string $instructions) : void |
|
135 | 135 | { |
136 | 136 | $this->getTranslation()->setInstructions($instructions); |
137 | 137 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * {@inheritdoc} |
149 | 149 | */ |
150 | - public function setEnvironment(?string $environment): void |
|
150 | + public function setEnvironment(?string $environment) : void |
|
151 | 151 | { |
152 | 152 | $this->environment = $environment; |
153 | 153 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * {@inheritdoc} |
165 | 165 | */ |
166 | - public function setPosition(?int $position): void |
|
166 | + public function setPosition(?int $position) : void |
|
167 | 167 | { |
168 | 168 | $this->position = $position; |
169 | 169 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @return PaymentMethodTranslationInterface |
175 | 175 | */ |
176 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
176 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
177 | 177 | { |
178 | 178 | /** @var PaymentMethodTranslationInterface $translation */ |
179 | 179 | $translation = $this->doGetTranslation($locale); |
@@ -9,7 +9,7 @@ discard block |
||
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\Taxonomy\Model; |
15 | 15 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * {@inheritdoc} |
110 | 110 | */ |
111 | - public function setCode(?string $code): void |
|
111 | + public function setCode(?string $code) : void |
|
112 | 112 | { |
113 | 113 | $this->code = $code; |
114 | 114 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * {@inheritdoc} |
142 | 142 | */ |
143 | - public function setParent(?TaxonInterface $parent): void |
|
143 | + public function setParent(?TaxonInterface $parent) : void |
|
144 | 144 | { |
145 | 145 | $this->parent = $parent; |
146 | 146 | if (null !== $parent) { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * {@inheritdoc} |
225 | 225 | */ |
226 | - public function setName(?string $name): void |
|
226 | + public function setName(?string $name) : void |
|
227 | 227 | { |
228 | 228 | $this->getTranslation()->setName($name); |
229 | 229 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * {@inheritdoc} |
241 | 241 | */ |
242 | - public function setSlug(?string $slug): void |
|
242 | + public function setSlug(?string $slug) : void |
|
243 | 243 | { |
244 | 244 | $this->getTranslation()->setSlug($slug); |
245 | 245 | } |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * {@inheritdoc} |
257 | 257 | */ |
258 | - public function setDescription(?string $description): void |
|
258 | + public function setDescription(?string $description) : void |
|
259 | 259 | { |
260 | 260 | $this->getTranslation()->setDescription($description); |
261 | 261 | } |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | /** |
272 | 272 | * {@inheritdoc} |
273 | 273 | */ |
274 | - public function setLeft(?int $left): void |
|
274 | + public function setLeft(?int $left) : void |
|
275 | 275 | { |
276 | 276 | $this->left = $left; |
277 | 277 | } |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | /** |
288 | 288 | * {@inheritdoc} |
289 | 289 | */ |
290 | - public function setRight(?int $right): void |
|
290 | + public function setRight(?int $right) : void |
|
291 | 291 | { |
292 | 292 | $this->right = $right; |
293 | 293 | } |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | /** |
304 | 304 | * {@inheritdoc} |
305 | 305 | */ |
306 | - public function setLevel(?int $level): void |
|
306 | + public function setLevel(?int $level) : void |
|
307 | 307 | { |
308 | 308 | $this->level = $level; |
309 | 309 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | /** |
320 | 320 | * {@inheritdoc} |
321 | 321 | */ |
322 | - public function setPosition(?int $position): void |
|
322 | + public function setPosition(?int $position) : void |
|
323 | 323 | { |
324 | 324 | $this->position = $position; |
325 | 325 | } |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * |
330 | 330 | * @return TaxonTranslationInterface |
331 | 331 | */ |
332 | - public function getTranslation(?string $locale = null): TranslationInterface |
|
332 | + public function getTranslation(?string $locale = null) : TranslationInterface |
|
333 | 333 | { |
334 | 334 | /** @var TaxonTranslationInterface $translation */ |
335 | 335 | $translation = $this->doGetTranslation($locale); |