@@ -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 |
@@ -8,5 +8,5 @@ |
||
8 | 8 | |
9 | 9 | interface CartQueryInterface |
10 | 10 | { |
11 | - public function findByToken(?string $orderToken): CartSummaryView; |
|
11 | + public function findByToken(? string $orderToken) : CartSummaryView; |
|
12 | 12 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->cartViewFactory = $cartViewFactory; |
35 | 35 | } |
36 | 36 | |
37 | - public function findByToken(?string $orderToken): CartSummaryView |
|
37 | + public function findByToken(? string $orderToken) : CartSummaryView |
|
38 | 38 | { |
39 | 39 | /** @var OrderInterface $cart */ |
40 | 40 | $cart = $this->cartRepository->findOneBy(['tokenValue' => $orderToken]); |
@@ -45,6 +45,9 @@ |
||
45 | 45 | return $currentTaxonView; |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $locale |
|
50 | + */ |
|
48 | 51 | private function buildTaxonView(TaxonInterface $taxon, $locale): TaxonView |
49 | 52 | { |
50 | 53 | $taxonView = $this->taxonViewFactory->create($taxon, $locale); |