Failed Conditions
Pull Request — master (#218)
by Kamil
02:39
created
src/ViewRepository/ProductDetailsViewRepositoryInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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\ViewRepository;
6 6
 
@@ -8,7 +8,7 @@  discard block
 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.
src/ViewRepository/ProductDetailsViewRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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\ViewRepository;
6 6
 
@@ -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/ProductReviewsViewRepositoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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\ViewRepository;
6 6
 
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 interface ProductReviewsViewRepositoryInterface
11 11
 {
12
-    public function getByProductSlug(string $productSlug, string $channelCode, PaginatorDetails $paginatorDetails, ?string $localeCode): PageView;
12
+    public function getByProductSlug(string $productSlug, string $channelCode, PaginatorDetails $paginatorDetails, ?string $localeCode) : PageView;
13 13
 
14 14
     public function getByProductCode(string $productCode, string $channelCode, PaginatorDetails $paginatorDetails): PageView;
15 15
 }
Please login to merge, or discard this patch.
src/ViewRepository/CartViewRepositoryInterface.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\ViewRepository;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Product/AddReviewByCodeAction.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\Controller\Product;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Product/ShowProductCatalogByTaxonSlugAction.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\Controller\Product;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Product/AddReviewBySlugAction.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\Controller\Product;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Product/ShowProductDetailsBySlugAction.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\Controller\Product;
6 6
 
Please login to merge, or discard this patch.
src/Controller/Product/ShowProductDetailsByCodeAction.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\Controller\Product;
6 6
 
Please login to merge, or discard this patch.