@@ -48,7 +48,8 @@ |
||
48 | 48 | |
49 | 49 | function it_throws_an_exception_if_constraint_is_not_of_expected_type(): void |
50 | 50 | { |
51 | - $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint { |
|
51 | + $this->shouldThrow(\InvalidArgumentException::class)->during('validate', ['', new class() extends Constraint |
|
52 | + { |
|
52 | 53 | }]); |
53 | 54 | } |
54 | 55 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ]; |
73 | 73 | |
74 | 74 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
75 | - $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool { |
|
75 | + $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone) : bool { |
|
76 | 76 | return $subZone !== null && $zone->getId() !== $subZone->getId(); |
77 | 77 | }; |
78 | 78 | } |
@@ -115,7 +115,8 @@ |
||
115 | 115 | |
116 | 116 | $decoratedChannelContext |
117 | 117 | ->getChannel() |
118 | - ->will(new class($channel->getWrappedObject()) { |
|
118 | + ->will(new class($channel->getWrappedObject()) |
|
119 | + { |
|
119 | 120 | /** @var int */ |
120 | 121 | private $counter = 0; |
121 | 122 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | string $message, |
43 | 43 | ?int $timeout = null |
44 | 44 | ): void { |
45 | - $callable = function () use ($notificationChecker, $message, $type): void { |
|
45 | + $callable = function () use ($notificationChecker, $message, $type) : void { |
|
46 | 46 | $notificationChecker->checkNotification($message, $type); |
47 | 47 | }; |
48 | 48 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function waitUntilPageOpens(PageInterface $page, ?array $options = [], ?int $timeout = null): void |
53 | 53 | { |
54 | - $callable = function () use ($page, $options): void { |
|
54 | + $callable = function () use ($page, $options) : void { |
|
55 | 55 | $page->open($options); |
56 | 56 | }; |
57 | 57 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function iShouldBeNotifiedThatThisEmailIsNotValidInLocale(string $localeCode): void |
59 | 59 | { |
60 | - Assert::same($this->createPage->getValidationMessage('email'), $this->translate('sylius.contact.email.invalid', $localeCode, 'validators')); |
|
60 | + Assert::same($this->createPage->getValidationMessage('email'), $this->translate('sylius.contact.email.invalid', $localeCode, 'validators')); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -58,7 +58,7 @@ |
||
58 | 58 | return false; |
59 | 59 | } |
60 | 60 | |
61 | - return $data instanceof ProductVariantInterface && $this->isAdminGetOperation($context); |
|
61 | + return $data instanceof ProductVariantInterface && $this->isAdminGetOperation($context); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | private function isAdminGetOperation(array $context): bool |
@@ -54,7 +54,9 @@ |
||
54 | 54 | ->shouldThrow(\InvalidArgumentException::class) |
55 | 55 | ->during('validate', [ |
56 | 56 | new AddItemToCart('productCode', 'productVariantCode', 1), |
57 | - new class() extends Constraint {} |
|
57 | + new class() extends Constraint |
|
58 | + { |
|
59 | +} |
|
58 | 60 | ]) |
59 | 61 | ; |
60 | 62 | } |
@@ -52,7 +52,9 @@ |
||
52 | 52 | ->shouldThrow(\InvalidArgumentException::class) |
53 | 53 | ->during('validate', [ |
54 | 54 | new AddressOrder('[email protected]', $billingAddress->getWrappedObject(), $shippingAddress->getWrappedObject()), |
55 | - new class() extends Constraint {} |
|
55 | + new class() extends Constraint |
|
56 | + { |
|
57 | +} |
|
56 | 58 | ]) |
57 | 59 | ; |
58 | 60 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | $rootAlias = $queryBuilder->getRootAliases()[0]; |
50 | - $queryBuilder->andWhere($rootAlias.'.enabled = :enabled'); |
|
50 | + $queryBuilder->andWhere($rootAlias . '.enabled = :enabled'); |
|
51 | 51 | $queryBuilder->setParameter('enabled', true); |
52 | 52 | } |
53 | 53 | } |