@@ -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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * {@inheritdoc} |
| 39 | 39 | */ |
| 40 | - public function setOrder(?BaseOrderInterface $order): void |
|
| 40 | + public function setOrder(?BaseOrderInterface $order) : void |
|
| 41 | 41 | { |
| 42 | 42 | $this->order = $order; |
| 43 | 43 | } |
@@ -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\Attribute\AttributeType; |
| 15 | 15 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | private function getValidationErrors( |
| 74 | 74 | ExecutionContextInterface $context, |
| 75 | 75 | ?string $value |
| 76 | - ): ConstraintViolationListInterface { |
|
| 76 | + ) : ConstraintViolationListInterface { |
|
| 77 | 77 | $validator = $context->getValidator(); |
| 78 | 78 | |
| 79 | 79 | return $validator->validate( |
@@ -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\Attribute\AttributeType; |
| 15 | 15 | |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | private function getValidationErrors( |
| 78 | 78 | ExecutionContextInterface $context, |
| 79 | - ?array $value, |
|
| 79 | + ? array $value, |
|
| 80 | 80 | array $validationConfiguration |
| 81 | - ): ConstraintViolationListInterface { |
|
| 81 | + ) : ConstraintViolationListInterface { |
|
| 82 | 82 | $validator = $context->getValidator(); |
| 83 | 83 | |
| 84 | 84 | $constraints = [ |
@@ -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\Attribute\AttributeType; |
| 15 | 15 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ExecutionContextInterface $context, |
| 77 | 77 | ?string $value, |
| 78 | 78 | array $validationConfiguration |
| 79 | - ): ConstraintViolationListInterface { |
|
| 79 | + ) : ConstraintViolationListInterface { |
|
| 80 | 80 | $validator = $context->getValidator(); |
| 81 | 81 | $constraints = []; |
| 82 | 82 | |
@@ -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\Attribute\AttributeType; |
| 15 | 15 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | private function getValidationErrors( |
| 74 | 74 | ExecutionContextInterface $context, |
| 75 | 75 | ?string $value |
| 76 | - ): ConstraintViolationListInterface { |
|
| 76 | + ) : ConstraintViolationListInterface { |
|
| 77 | 77 | $validator = $context->getValidator(); |
| 78 | 78 | |
| 79 | 79 | return $validator->validate( |
@@ -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\Attribute\AttributeType; |
| 15 | 15 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | private function getValidationErrors( |
| 74 | 74 | ExecutionContextInterface $context, |
| 75 | 75 | ?string $value |
| 76 | - ): ConstraintViolationListInterface { |
|
| 76 | + ) : ConstraintViolationListInterface { |
|
| 77 | 77 | $validator = $context->getValidator(); |
| 78 | 78 | |
| 79 | 79 | return $validator->validate( |
@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * {@inheritdoc} |
| 97 | 97 | */ |
| 98 | - public function setSubject(?AttributeSubjectInterface $subject): void |
|
| 98 | + public function setSubject(?AttributeSubjectInterface $subject) : void |
|
| 99 | 99 | { |
| 100 | 100 | $this->subject = $subject; |
| 101 | 101 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * {@inheritdoc} |
| 113 | 113 | */ |
| 114 | - public function setAttribute(?AttributeInterface $attribute): void |
|
| 114 | + public function setAttribute(?AttributeInterface $attribute) : void |
|
| 115 | 115 | { |
| 116 | 116 | $this->attribute = $attribute; |
| 117 | 117 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | /** |
| 128 | 128 | * {@inheritdoc} |
| 129 | 129 | */ |
| 130 | - public function setLocaleCode(?string $localeCode): void |
|
| 130 | + public function setLocaleCode(?string $localeCode) : void |
|
| 131 | 131 | { |
| 132 | 132 | Assert::string($localeCode); |
| 133 | 133 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * @param bool|null $boolean |
| 203 | 203 | */ |
| 204 | - protected function setBoolean(?bool $boolean): void |
|
| 204 | + protected function setBoolean(?bool $boolean) : void |
|
| 205 | 205 | { |
| 206 | 206 | $this->boolean = $boolean; |
| 207 | 207 | } |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | /** |
| 218 | 218 | * @param string|null $text |
| 219 | 219 | */ |
| 220 | - protected function setText(?string $text): void |
|
| 220 | + protected function setText(?string $text) : void |
|
| 221 | 221 | { |
| 222 | 222 | $this->text = $text; |
| 223 | 223 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | /** |
| 234 | 234 | * @param int|null $integer |
| 235 | 235 | */ |
| 236 | - protected function setInteger(?int $integer): void |
|
| 236 | + protected function setInteger(?int $integer) : void |
|
| 237 | 237 | { |
| 238 | 238 | $this->integer = $integer; |
| 239 | 239 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | /** |
| 250 | 250 | * @param float|null $float |
| 251 | 251 | */ |
| 252 | - protected function setFloat(?float $float): void |
|
| 252 | + protected function setFloat(?float $float) : void |
|
| 253 | 253 | { |
| 254 | 254 | $this->float = $float; |
| 255 | 255 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | /** |
| 266 | 266 | * @param \DateTimeInterface $datetime |
| 267 | 267 | */ |
| 268 | - protected function setDatetime(?\DateTimeInterface $datetime): void |
|
| 268 | + protected function setDatetime(?\DateTimeInterface $datetime) : void |
|
| 269 | 269 | { |
| 270 | 270 | $this->datetime = $datetime; |
| 271 | 271 | } |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | /** |
| 282 | 282 | * @param \DateTimeInterface|null $date |
| 283 | 283 | */ |
| 284 | - protected function setDate(?\DateTimeInterface $date): void |
|
| 284 | + protected function setDate(?\DateTimeInterface $date) : void |
|
| 285 | 285 | { |
| 286 | 286 | $this->date = $date; |
| 287 | 287 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | /** |
| 290 | 290 | * @return array|null |
| 291 | 291 | */ |
| 292 | - protected function getJson(): ?array |
|
| 292 | + protected function getJson(): ? array |
|
| 293 | 293 | { |
| 294 | 294 | return $this->json; |
| 295 | 295 | } |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | /** |
| 298 | 298 | * @param array|null $json |
| 299 | 299 | */ |
| 300 | - protected function setJson(?array $json): void |
|
| 300 | + protected function setJson(? array $json) : void |
|
| 301 | 301 | { |
| 302 | 302 | $this->json = $json; |
| 303 | 303 | } |
@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -28,5 +28,5 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * @param string|null $name |
| 30 | 30 | */ |
| 31 | - public function setName(?string $name): void; |
|
| 31 | + public function setName(?string $name) : void; |
|
| 32 | 32 | } |
@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * {@inheritdoc} |
| 95 | 95 | */ |
| 96 | - public function setCode(?string $code): void |
|
| 96 | + public function setCode(?string $code) : void |
|
| 97 | 97 | { |
| 98 | 98 | $this->code = $code; |
| 99 | 99 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * {@inheritdoc} |
| 111 | 111 | */ |
| 112 | - public function setName(?string $name): void |
|
| 112 | + public function setName(?string $name) : void |
|
| 113 | 113 | { |
| 114 | 114 | $this->getTranslation()->setName($name); |
| 115 | 115 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * {@inheritdoc} |
| 127 | 127 | */ |
| 128 | - public function setType(?string $type): void |
|
| 128 | + public function setType(?string $type) : void |
|
| 129 | 129 | { |
| 130 | 130 | $this->type = $type; |
| 131 | 131 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * {@inheritdoc} |
| 159 | 159 | */ |
| 160 | - public function setStorageType(?string $storageType): void |
|
| 160 | + public function setStorageType(?string $storageType) : void |
|
| 161 | 161 | { |
| 162 | 162 | $this->storageType = $storageType; |
| 163 | 163 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | /** |
| 174 | 174 | * {@inheritdoc} |
| 175 | 175 | */ |
| 176 | - public function setPosition(?int $position): void |
|
| 176 | + public function setPosition(?int $position) : void |
|
| 177 | 177 | { |
| 178 | 178 | $this->position = $position; |
| 179 | 179 | } |