From 6b82de8476fd510735463ea92c833ceb68ebeea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 15 Sep 2023 12:45:18 +0200 Subject: [PATCH] CS fixes --- bundle/NetgenContentBrowserSyliusBundle.php | 4 +--- lib/Backend/ProductBackend.php | 3 +-- lib/Backend/TaxonBackend.php | 3 +-- lib/Item/Product/Item.php | 4 +--- lib/Item/Product/Location.php | 4 +--- lib/Item/Taxon/Item.php | 4 +--- tests/lib/Stubs/Item.php | 4 +--- tests/lib/Stubs/Location.php | 4 +--- tests/lib/Stubs/ProductTranslation.php | 4 +--- tests/lib/Stubs/TaxonTranslation.php | 4 +--- 10 files changed, 10 insertions(+), 28 deletions(-) diff --git a/bundle/NetgenContentBrowserSyliusBundle.php b/bundle/NetgenContentBrowserSyliusBundle.php index ac13f76..10f64b5 100644 --- a/bundle/NetgenContentBrowserSyliusBundle.php +++ b/bundle/NetgenContentBrowserSyliusBundle.php @@ -6,6 +6,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; -final class NetgenContentBrowserSyliusBundle extends Bundle -{ -} +final class NetgenContentBrowserSyliusBundle extends Bundle {} diff --git a/lib/Backend/ProductBackend.php b/lib/Backend/ProductBackend.php index 3c63393..1385ec6 100644 --- a/lib/Backend/ProductBackend.php +++ b/lib/Backend/ProductBackend.php @@ -30,8 +30,7 @@ public function __construct( private TaxonRepositoryInterface $taxonRepository, private ProductRepositoryInterface $productRepository, private LocaleContextInterface $localeContext, - ) { - } + ) {} public function getSections(): iterable { diff --git a/lib/Backend/TaxonBackend.php b/lib/Backend/TaxonBackend.php index a4aa772..8479492 100644 --- a/lib/Backend/TaxonBackend.php +++ b/lib/Backend/TaxonBackend.php @@ -25,8 +25,7 @@ final class TaxonBackend implements BackendInterface public function __construct( private TaxonRepositoryInterface $taxonRepository, private LocaleContextInterface $localeContext, - ) { - } + ) {} public function getSections(): iterable { diff --git a/lib/Item/Product/Item.php b/lib/Item/Product/Item.php index 04309c8..2bee0d0 100644 --- a/lib/Item/Product/Item.php +++ b/lib/Item/Product/Item.php @@ -9,9 +9,7 @@ final class Item implements ItemInterface, ProductInterface { - public function __construct(private SyliusProductInterface $product) - { - } + public function __construct(private SyliusProductInterface $product) {} public function getValue(): int { diff --git a/lib/Item/Product/Location.php b/lib/Item/Product/Location.php index 13c53ba..593c6c5 100644 --- a/lib/Item/Product/Location.php +++ b/lib/Item/Product/Location.php @@ -9,9 +9,7 @@ final class Location implements LocationInterface, TaxonInterface { - public function __construct(private SyliusTaxonInterface $taxon) - { - } + public function __construct(private SyliusTaxonInterface $taxon) {} public function getLocationId(): int { diff --git a/lib/Item/Taxon/Item.php b/lib/Item/Taxon/Item.php index c20986a..d323b97 100644 --- a/lib/Item/Taxon/Item.php +++ b/lib/Item/Taxon/Item.php @@ -10,9 +10,7 @@ final class Item implements ItemInterface, LocationInterface, TaxonInterface { - public function __construct(private SyliusTaxonInterface $taxon) - { - } + public function __construct(private SyliusTaxonInterface $taxon) {} public function getLocationId(): int { diff --git a/tests/lib/Stubs/Item.php b/tests/lib/Stubs/Item.php index 29c4c4c..8eecd40 100644 --- a/tests/lib/Stubs/Item.php +++ b/tests/lib/Stubs/Item.php @@ -8,9 +8,7 @@ final class Item implements ItemInterface { - public function __construct(private string $value) - { - } + public function __construct(private string $value) {} public function getValue(): string { diff --git a/tests/lib/Stubs/Location.php b/tests/lib/Stubs/Location.php index df15ed1..faf3ba1 100644 --- a/tests/lib/Stubs/Location.php +++ b/tests/lib/Stubs/Location.php @@ -8,9 +8,7 @@ final class Location implements LocationInterface { - public function __construct(private int $id, private ?int $parentId = null) - { - } + public function __construct(private int $id, private ?int $parentId = null) {} public function getLocationId(): int { diff --git a/tests/lib/Stubs/ProductTranslation.php b/tests/lib/Stubs/ProductTranslation.php index 0517784..58f4d7e 100644 --- a/tests/lib/Stubs/ProductTranslation.php +++ b/tests/lib/Stubs/ProductTranslation.php @@ -6,6 +6,4 @@ use Sylius\Component\Product\Model\ProductTranslation as BaseProductTranslation; -final class ProductTranslation extends BaseProductTranslation -{ -} +final class ProductTranslation extends BaseProductTranslation {} diff --git a/tests/lib/Stubs/TaxonTranslation.php b/tests/lib/Stubs/TaxonTranslation.php index 7a6a140..e14baea 100644 --- a/tests/lib/Stubs/TaxonTranslation.php +++ b/tests/lib/Stubs/TaxonTranslation.php @@ -6,6 +6,4 @@ use Sylius\Component\Taxonomy\Model\TaxonTranslation as BaseTaxonTranslation; -final class TaxonTranslation extends BaseTaxonTranslation -{ -} +final class TaxonTranslation extends BaseTaxonTranslation {}