@@ -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\Product; |
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\View; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\ViewRepository; |
6 | 6 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $this->productViewFactory = $productViewFactory; |
40 | 40 | } |
41 | 41 | |
42 | - public function getLatestProducts(string $channelCode, ?string $localeCode, int $count): ProductListView |
|
42 | + public function getLatestProducts(string $channelCode, ?string $localeCode, int $count) : ProductListView |
|
43 | 43 | { |
44 | 44 | $channel = $this->getChannel($channelCode); |
45 | 45 | $localeCode = $this->getLocaleCode($localeCode, $channel); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return $channel; |
67 | 67 | } |
68 | 68 | |
69 | - private function getLocaleCode(?string $localeCode, ChannelInterface $channel): string |
|
69 | + private function getLocaleCode(?string $localeCode, ChannelInterface $channel) : string |
|
70 | 70 | { |
71 | 71 | $localeCode = $localeCode ?? $channel->getDefaultLocale()->getCode(); |
72 | 72 | $this->assertLocaleSupport($localeCode, $channel->getLocales()); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Sylius\ShopApiPlugin\ViewRepository; |
6 | 6 | |
@@ -8,5 +8,5 @@ discard block |
||
8 | 8 | |
9 | 9 | interface ProductLatestViewRepositoryInterface |
10 | 10 | { |
11 | - public function getLatestProducts(string $channelCode, ?string $localeCode, int $count): ProductListView; |
|
11 | + public function getLatestProducts(string $channelCode, ?string $localeCode, int $count) : ProductListView; |
|
12 | 12 | } |