@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Controller\Cart; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Controller\Cart; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Controller\Cart; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Factory; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Factory; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Factory; |
6 | 6 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function provide(string $email): CustomerInterface |
30 | 30 | { |
31 | - $customer = $this->customerRepository->findOneBy(['email' => $email]); |
|
31 | + $customer = $this->customerRepository->findOneBy(['email' => $email]); |
|
32 | 32 | |
33 | 33 | if (null === $customer) { |
34 | 34 | /** @var CustomerInterface $customer */ |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\Factory; |
6 | 6 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $this->productViewFactory = $productViewFactory; |
34 | 34 | } |
35 | 35 | |
36 | - public function findOneBySlug(string $productSlug, string $channelCode, ?string $localeCode): ProductView |
|
36 | + public function findOneBySlug(string $productSlug, string $channelCode, ? string $localeCode) : ProductView |
|
37 | 37 | { |
38 | 38 | $channel = $this->getChannel($channelCode); |
39 | 39 | $localeCode = $this->getLocaleCode($localeCode, $channel); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return $this->productViewFactory->create($product, $channel, $localeCode); |
46 | 46 | } |
47 | 47 | |
48 | - public function findOneByCode(string $productCode, string $channelCode, ?string $localeCode): ProductView |
|
48 | + public function findOneByCode(string $productCode, string $channelCode, ? string $localeCode) : ProductView |
|
49 | 49 | { |
50 | 50 | $channel = $this->getChannel($channelCode); |
51 | 51 | $localeCode = $this->getLocaleCode($localeCode, $channel); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | return $channel; |
83 | 83 | } |
84 | 84 | |
85 | - private function getLocaleCode(?string $localeCode, ChannelInterface $channel): string |
|
85 | + private function getLocaleCode(? string $localeCode, ChannelInterface $channel) : string |
|
86 | 86 | { |
87 | 87 | $localeCode = $localeCode ?? $channel->getDefaultLocale()->getCode(); |
88 | 88 | $this->assertLocaleSupport($localeCode, $channel->getLocales()); |