Completed
Pull Request — master (#179)
by Łukasz
03:06
created
src/Query/CartQueryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,5 @@
 block discarded – undo
8 8
 
9 9
 interface CartQueryInterface
10 10
 {
11
-    public function findByToken(?string $orderToken): CartSummaryView;
11
+    public function findByToken(? string $orderToken) : CartSummaryView;
12 12
 }
Please login to merge, or discard this patch.
src/Query/CartQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/Factory/TaxonDetailsViewFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Query/ProductDetailsQuery.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
         Assert::oneOf($localeCode, $supportedLocaleCodes);
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $channelCode
77
+     */
75 78
     private function getChannel(?string $channelCode): ChannelInterface
76 79
     {
77 80
         /** @var ChannelInterface $channel */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this->productViewFactory = $productViewFactory;
34 34
     }
35 35
 
36
-    public function findOneBySlug(string $channelCode, string $productSlug, ?string $localeCode): ProductView
36
+    public function findOneBySlug(string $channelCode, string $productSlug, ? string $localeCode) : ProductView
37 37
     {
38 38
         $channel = $this->getChannel($channelCode);
39 39
         $localeCode = $this->getLocaleCode($localeCode, $channel);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         return $this->productViewFactory->create($product, $channel, $localeCode);
46 46
     }
47 47
 
48
-    public function findOneByCode(string $channelCode, string $productCode, ?string $localeCode): ProductView
48
+    public function findOneByCode(string $channelCode, string $productCode, ? string $localeCode) : ProductView
49 49
     {
50 50
         $channel = $this->getChannel($channelCode);
51 51
         $localeCode = $this->getLocaleCode($localeCode, $channel);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         Assert::oneOf($localeCode, $supportedLocaleCodes);
73 73
     }
74 74
 
75
-    private function getChannel(?string $channelCode): ChannelInterface
75
+    private function getChannel(? string $channelCode) : ChannelInterface
76 76
     {
77 77
         /** @var ChannelInterface $channel */
78 78
         $channel = $this->channelRepository->findOneByCode($channelCode);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Query/ProductDetailsQueryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 interface ProductDetailsQueryInterface
10 10
 {
11
-    public function findOneBySlug(string $channelCode, string $productSlug, ?string $localeCode): ProductView;
11
+    public function findOneBySlug(string $channelCode, string $productSlug, ? string $localeCode) : ProductView;
12 12
 
13
-    public function findOneByCode(string $channelCode, string $productCode, ?string $localeCode): ProductView;
13
+    public function findOneByCode(string $channelCode, string $productCode, ? string $localeCode) : ProductView;
14 14
 }
Please login to merge, or discard this patch.