From 7327c744399ac0c9eeaefcde962495aaa496a12a Mon Sep 17 00:00:00 2001 From: Sylius Bot Date: Mon, 25 Dec 2023 02:16:00 +0000 Subject: [PATCH] [CS][DX] Refactor --- .../LocaleBundle/Context/RequestHeaderBasedLocaleContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php b/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php index 3b4a7d8803..ad6f9d2bb4 100644 --- a/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php +++ b/src/Sylius/Bundle/LocaleBundle/Context/RequestHeaderBasedLocaleContext.php @@ -27,7 +27,7 @@ final class RequestHeaderBasedLocaleContext implements LocaleContextInterface { private const NO_CODE_VALID_STUB = 'NO_CODE_VALID_STUB'; - /** @var array $availableLocalesCodes */ + /** @var array */ private array $availableLocalesCodes = []; public function __construct(private RequestStack $requestStack, private LocaleProviderInterface $localeProvider) @@ -44,7 +44,7 @@ final class RequestHeaderBasedLocaleContext implements LocaleContextInterface if ([] === $this->availableLocalesCodes) { $this->availableLocalesCodes = array_unique(array_merge( [$this->localeProvider->getDefaultLocaleCode()], - $this->localeProvider->getAvailableLocalesCodes() + $this->localeProvider->getAvailableLocalesCodes(), )); }