@@ -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\Core\Model; |
| 15 | 15 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @param AddressInterface|null $defaultAddress |
| 37 | 37 | */ |
| 38 | - public function setDefaultAddress(?AddressInterface $defaultAddress): void; |
|
| 38 | + public function setDefaultAddress(?AddressInterface $defaultAddress) : void; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param AddressInterface $address |
@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param string|null $name |
| 47 | 47 | */ |
| 48 | - public function setName(?string $name): void; |
|
| 48 | + public function setName(?string $name) : void; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @return string|null |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * @param string|null $description |
| 57 | 57 | */ |
| 58 | - public function setDescription(?string $description): void; |
|
| 58 | + public function setDescription(?string $description) : void; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @return int|null |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param int|null $position |
| 67 | 67 | */ |
| 68 | - public function setPosition(?int $position): void; |
|
| 68 | + public function setPosition(?int $position) : void; |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * @return ShippingCategoryInterface|null |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * @param int|null $categoryRequirement |
| 94 | 94 | */ |
| 95 | - public function setCategoryRequirement(?int $categoryRequirement): void; |
|
| 95 | + public function setCategoryRequirement(?int $categoryRequirement) : void; |
|
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * @return string |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * @param string $calculator |
| 104 | 104 | */ |
| 105 | - public function setCalculator(?string $calculator): void; |
|
| 105 | + public function setCalculator(?string $calculator) : void; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * @return array |
@@ -119,5 +119,5 @@ discard block |
||
| 119 | 119 | * |
| 120 | 120 | * @return ShippingMethodTranslationInterface |
| 121 | 121 | */ |
| 122 | - public function getTranslation(?string $locale = null): TranslationInterface; |
|
| 122 | + public function getTranslation(?string $locale = null) : TranslationInterface; |
|
| 123 | 123 | } |
@@ -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 | |
@@ -37,12 +37,12 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * @param string|null $name |
| 39 | 39 | */ |
| 40 | - public function setName(?string $name): void; |
|
| 40 | + public function setName(?string $name) : void; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @param null|string $locale |
| 44 | 44 | * |
| 45 | 45 | * @return ProductAssociationTypeTranslationInterface |
| 46 | 46 | */ |
| 47 | - public function getTranslation(?string $locale = null): TranslationInterface; |
|
| 47 | + public function getTranslation(?string $locale = null) : TranslationInterface; |
|
| 48 | 48 | } |
@@ -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 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @param string|null $name |
| 46 | 46 | */ |
| 47 | - public function setName(?string $name): void; |
|
| 47 | + public function setName(?string $name) : void; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @return string|null |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * @param string|null $description |
| 56 | 56 | */ |
| 57 | - public function setDescription(?string $description): void; |
|
| 57 | + public function setDescription(?string $description) : void; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @return string|null |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param string|null $metaKeywords |
| 66 | 66 | */ |
| 67 | - public function setMetaKeywords(?string $metaKeywords): void; |
|
| 67 | + public function setMetaKeywords(?string $metaKeywords) : void; |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * @return string|null |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * @param string|null $metaDescription |
| 76 | 76 | */ |
| 77 | - public function setMetaDescription(?string $metaDescription): void; |
|
| 77 | + public function setMetaDescription(?string $metaDescription) : void; |
|
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * @return bool |
@@ -160,5 +160,5 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @return ProductTranslationInterface |
| 162 | 162 | */ |
| 163 | - public function getTranslation(?string $locale = null): TranslationInterface; |
|
| 163 | + public function getTranslation(?string $locale = null) : TranslationInterface; |
|
| 164 | 164 | } |
@@ -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); |