Completed
Push — master ( 80bb16...83803c )
by Kamil
17s
created
src/Factory/ProductViewFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/EventListener/UserRegistrationListener.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
     /**
25 25
      * @param CommandBus $bus
26 26
      */
27
-    public function __construct(CommandBus $bus) {
27
+    public function __construct(CommandBus $bus)
28
+    {
28 29
         $this->bus = $bus;
29 30
     }
30 31
 
Please login to merge, or discard this patch.
src/Provider/CustomerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/Factory/ListProductViewFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
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/ViewRepository/ProductDetailsViewRepository.php 1 patch
Spacing   +3 added lines, -3 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 $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
 block discarded – undo
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
 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/ViewRepository/ProductCatalogViewRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->pageViewFactory = $pageViewFactory;
50 50
     }
51 51
 
52
-    public function findByTaxonSlug(string $taxonSlug, string $channelCode, PaginatorDetails $paginatorDetails, ?string $localeCode): PageView
52
+    public function findByTaxonSlug(string $taxonSlug, string $channelCode, PaginatorDetails $paginatorDetails, ? string $localeCode) : PageView
53 53
     {
54 54
         $channel = $this->getChannel($channelCode);
55 55
         $localeCode = $this->getLocaleCode($localeCode, $channel);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         return $this->findByTaxon($taxon, $channel, $paginatorDetails, $localeCode);
64 64
     }
65 65
 
66
-    public function findByTaxonCode(string $taxonCode, string $channelCode, PaginatorDetails $paginatorDetails, ?string $localeCode): PageView
66
+    public function findByTaxonCode(string $taxonCode, string $channelCode, PaginatorDetails $paginatorDetails, ? string $localeCode) : PageView
67 67
     {
68 68
         $channel = $this->getChannel($channelCode);
69 69
         $localeCode = $this->getLocaleCode($localeCode, $channel);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         return $channel;
102 102
     }
103 103
 
104
-    private function getLocaleCode(?string $localeCode, ChannelInterface $channel): string
104
+    private function getLocaleCode(? string $localeCode, ChannelInterface $channel) : string
105 105
     {
106 106
         $localeCode = $localeCode ?? $channel->getDefaultLocale()->getCode();
107 107
         $this->assertLocaleSupport($localeCode, $channel->getLocales());
Please login to merge, or discard this patch.
src/ViewRepository/ProductReviewsViewRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $this->pageViewFactory = $pageViewFactory;
50 50
     }
51 51
 
52
-    public function getByProductSlug(string $productSlug, string $channelCode, PaginatorDetails $paginatorDetails, ?string $localeCode): PageView
52
+    public function getByProductSlug(string $productSlug, string $channelCode, PaginatorDetails $paginatorDetails, ? string $localeCode) : PageView
53 53
     {
54 54
         $channel = $this->getChannel($channelCode);
55 55
         $localeCode = $localeCode ?? $channel->getDefaultLocale()->getCode();
Please login to merge, or discard this patch.
src/ViewRepository/ProductDetailsViewRepositoryInterface.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 ProductDetailsViewRepositoryInterface
10 10
 {
11
-    public function findOneBySlug(string $productSlug, string $channelCode, ?string $localeCode): ProductView;
11
+    public function findOneBySlug(string $productSlug, string $channelCode, ? string $localeCode) : ProductView;
12 12
 
13
-    public function findOneByCode(string $productCode, string $channelCode, ?string $localeCode): ProductView;
13
+    public function findOneByCode(string $productCode, string $channelCode, ? string $localeCode) : ProductView;
14 14
 }
Please login to merge, or discard this patch.