[CS][DX] Refactor (#18898)

This PR has been generated automatically.
For more details see
[refactor.yaml](/Sylius/Sylius/blob/2.1/.github/workflows/refactor.yaml).
This commit is contained in:
Kamil Grygierzec 2026-03-10 17:49:02 +01:00 committed by GitHub
commit bb17134a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -312,9 +312,9 @@ final readonly class CartContext implements Context
$previousToken = $this->tokenStorage?->getToken();
if (
null !== $this->tokenStorage
&& $this->sharedStorage->has('user')
&& $this->sharedStorage->get('user') instanceof ShopUserInterface
null !== $this->tokenStorage &&
$this->sharedStorage->has('user') &&
$this->sharedStorage->get('user') instanceof ShopUserInterface
) {
/** @var ShopUserInterface $user */
$user = $this->sharedStorage->get('user');

View file

@ -17,11 +17,11 @@ use Sylius\Bundle\ShopBundle\Modifier\AddressFormValuesModifierInterface;
use Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponentTrait;
use Sylius\Bundle\UiBundle\Twig\Component\TemplatePropTrait;
use Sylius\Component\Addressing\Model\AddressInterface;
use Sylius\Component\Core\Model\CustomerInterface;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\Core\Repository\AddressRepositoryInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Model\CustomerInterface;
use Sylius\Component\Customer\Context\CustomerContextInterface;
use Sylius\Component\User\Repository\UserRepositoryInterface;
use Symfony\Component\Form\FormFactoryInterface;