mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[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:
commit
bb17134a98
2 changed files with 4 additions and 4 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue