[CS][DX] Refactor

This commit is contained in:
Sylius Bot 2026-03-10 02:55:51 +00:00 committed by GitHub
parent efac58e781
commit 53dab0aac7
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

@ -15,11 +15,11 @@ namespace Sylius\Bundle\ShopBundle\Twig\Component\Checkout\Address;
use Sylius\Bundle\UiBundle\Twig\Component\ResourceFormComponentTrait;
use Sylius\Bundle\UiBundle\Twig\Component\TemplatePropTrait;
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;