mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[CS][DX] Refactor
This commit is contained in:
parent
efac58e781
commit
53dab0aac7
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');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue