diff --git a/src/Sylius/Behat/Context/Api/Admin/ManagingChannelsContext.php b/src/Sylius/Behat/Context/Api/Admin/ManagingChannelsContext.php index ad4d0c8d33c..8546c610cfd 100644 --- a/src/Sylius/Behat/Context/Api/Admin/ManagingChannelsContext.php +++ b/src/Sylius/Behat/Context/Api/Admin/ManagingChannelsContext.php @@ -255,15 +255,17 @@ public function iSpecifyShopBillingDataAs( ): void { $shopBillingDataId = $this->iriConverter->getIriFromResource($channel->getShopBillingData()); - $this->client->addRequestData('shopBillingData', [ + $this->client->addRequestData( + 'shopBillingData', + [ '@id' => $shopBillingDataId, 'company' => $company, 'street' => $street, 'postcode' => $postcode, 'city' => $city, 'countryCode' => $country->getCode(), - 'taxId' => $taxId - ] + 'taxId' => $taxId, + ], ); } diff --git a/src/Sylius/Bundle/ApiBundle/DataPersister/ChannelDataPersister.php b/src/Sylius/Bundle/ApiBundle/DataPersister/ChannelDataPersister.php index 8f849959cbe..ee070bf8458 100644 --- a/src/Sylius/Bundle/ApiBundle/DataPersister/ChannelDataPersister.php +++ b/src/Sylius/Bundle/ApiBundle/DataPersister/ChannelDataPersister.php @@ -20,7 +20,7 @@ final class ChannelDataPersister implements ContextAwareDataPersisterInterface { - public function __construct ( + public function __construct( private ContextAwareDataPersisterInterface $decoratedDataPersister, private ChannelDeletionCheckerInterface $channelDeletionChecker, ) { diff --git a/src/Sylius/Bundle/ApiBundle/spec/DataPersister/ChannelDataPersisterSpec.php b/src/Sylius/Bundle/ApiBundle/spec/DataPersister/ChannelDataPersisterSpec.php index c572056c707..e0750d5f782 100644 --- a/src/Sylius/Bundle/ApiBundle/spec/DataPersister/ChannelDataPersisterSpec.php +++ b/src/Sylius/Bundle/ApiBundle/spec/DataPersister/ChannelDataPersisterSpec.php @@ -36,7 +36,7 @@ function it_supports_only_channel_entity(ChannelInterface $channel, \stdClass $o function it_persists_channel( ContextAwareDataPersisterInterface $decoratedDataPersister, - ChannelInterface $channel + ChannelInterface $channel, ): void { $decoratedDataPersister->persist($channel, [])->willReturn($channel); @@ -45,7 +45,7 @@ function it_persists_channel( function it_throws_an_exception_if_channel_is_not_deletable( ChannelDeletionCheckerInterface $channelDeletionChecker, - ChannelInterface $channel + ChannelInterface $channel, ): void { $channelDeletionChecker->isDeletable($channel)->willReturn(false); @@ -58,7 +58,7 @@ function it_throws_an_exception_if_channel_is_not_deletable( function it_removes_channel( ContextAwareDataPersisterInterface $decoratedDataPersister, ChannelDeletionCheckerInterface $channelDeletionChecker, - ChannelInterface $channel + ChannelInterface $channel, ): void { $channelDeletionChecker->isDeletable($channel)->willReturn(true); $decoratedDataPersister->remove($channel, [])->willReturn(null); diff --git a/src/Sylius/Bundle/CoreBundle/spec/EventListener/Workflow/Order/SetImmutableNamesListenerSpec.php b/src/Sylius/Bundle/CoreBundle/spec/EventListener/Workflow/Order/SetImmutableNamesListenerSpec.php index 5d9c0130f37..1b5631986cc 100644 --- a/src/Sylius/Bundle/CoreBundle/spec/EventListener/Workflow/Order/SetImmutableNamesListenerSpec.php +++ b/src/Sylius/Bundle/CoreBundle/spec/EventListener/Workflow/Order/SetImmutableNamesListenerSpec.php @@ -15,7 +15,6 @@ use PhpSpec\ObjectBehavior; use Sylius\Component\Core\Model\OrderInterface; -use Sylius\Component\Core\Order\OrderItemNamesSetter; use Sylius\Component\Core\Order\OrderItemNamesSetterInterface; use Symfony\Component\Workflow\Event\CompletedEvent; use Symfony\Component\Workflow\Marking; diff --git a/src/Sylius/Component/Channel/spec/Checker/ChannelDeletionCheckerSpec.php b/src/Sylius/Component/Channel/spec/Checker/ChannelDeletionCheckerSpec.php index aeba7fd7eac..d419ee103ec 100644 --- a/src/Sylius/Component/Channel/spec/Checker/ChannelDeletionCheckerSpec.php +++ b/src/Sylius/Component/Channel/spec/Checker/ChannelDeletionCheckerSpec.php @@ -34,7 +34,7 @@ function it_returns_a_channel_can_be_deleted_when_is_disabled(ChannelInterface $ function it_returns_a_channel_can_be_deleted_when_at_least_two_channels_are_enabled( ChannelRepositoryInterface $channelRepository, ChannelInterface $channel, - ChannelInterface $anotherChannel + ChannelInterface $anotherChannel, ): void { $channel->isEnabled()->willReturn(true); $channelRepository->findEnabled()->willReturn([$channel, $anotherChannel]); @@ -44,7 +44,7 @@ function it_returns_a_channel_can_be_deleted_when_at_least_two_channels_are_enab function it_returns_a_channel_cannot_be_deleted_when_only_one_channel_is_enabled( ChannelRepositoryInterface $channelRepository, - ChannelInterface $channel + ChannelInterface $channel, ): void { $channel->isEnabled()->willReturn(true); $channelRepository->findEnabled()->willReturn([$channel]); @@ -54,7 +54,7 @@ function it_returns_a_channel_cannot_be_deleted_when_only_one_channel_is_enabled function it_returns_a_channel_cannot_be_deleted_when_no_channel_is_enabled( ChannelRepositoryInterface $channelRepository, - ChannelInterface $channel + ChannelInterface $channel, ): void { $channel->isEnabled()->willReturn(true); $channelRepository->findEnabled()->willReturn([]);