From 634f93d83d39bc2755090a93b859215604a77fe2 Mon Sep 17 00:00:00 2001 From: lukmzig Date: Thu, 28 Nov 2024 14:40:33 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Document/Attribute/Response/AvailableSitesJson.php | 1 - src/Document/Controller/AvailableSitesController.php | 2 +- src/Document/MappedParameter/ExcludeMainSiteParameter.php | 3 +-- src/Document/Repository/SiteRepository.php | 3 +-- src/Document/Repository/SiteRepositoryInterface.php | 1 + src/Document/Schema/Site.php | 3 +-- src/Document/Service/SiteService.php | 2 +- 7 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Document/Attribute/Response/AvailableSitesJson.php b/src/Document/Attribute/Response/AvailableSitesJson.php index f911b43a..99a62603 100644 --- a/src/Document/Attribute/Response/AvailableSitesJson.php +++ b/src/Document/Attribute/Response/AvailableSitesJson.php @@ -19,7 +19,6 @@ use OpenApi\Attributes\Items; use OpenApi\Attributes\JsonContent; use OpenApi\Attributes\Property; -use Pimcore\Bundle\StudioBackendBundle\Class\Schema\QuantityValueUnit; use Pimcore\Bundle\StudioBackendBundle\Document\Schema\Site; /** diff --git a/src/Document/Controller/AvailableSitesController.php b/src/Document/Controller/AvailableSitesController.php index eb125c3f..989eea9e 100644 --- a/src/Document/Controller/AvailableSitesController.php +++ b/src/Document/Controller/AvailableSitesController.php @@ -64,7 +64,7 @@ public function __construct( content: new AvailableSitesJson() )] #[DefaultResponses([ - HttpResponseCodes::UNAUTHORIZED + HttpResponseCodes::UNAUTHORIZED, ])] public function getAvailableSites( #[MapQueryString] MappedParameter $parameter diff --git a/src/Document/MappedParameter/ExcludeMainSiteParameter.php b/src/Document/MappedParameter/ExcludeMainSiteParameter.php index 6710a8b8..f16bc75f 100644 --- a/src/Document/MappedParameter/ExcludeMainSiteParameter.php +++ b/src/Document/MappedParameter/ExcludeMainSiteParameter.php @@ -23,8 +23,7 @@ { public function __construct( private ?string $excludeMainSite = null - ) - { + ) { } public function getExcludeMainSite(): bool diff --git a/src/Document/Repository/SiteRepository.php b/src/Document/Repository/SiteRepository.php index be58ce6f..8c937924 100644 --- a/src/Document/Repository/SiteRepository.php +++ b/src/Document/Repository/SiteRepository.php @@ -31,5 +31,4 @@ public function listSites(): array { return (new Listing())->load(); } - -} \ No newline at end of file +} diff --git a/src/Document/Repository/SiteRepositoryInterface.php b/src/Document/Repository/SiteRepositoryInterface.php index aafb6fc8..9a6b4ce9 100644 --- a/src/Document/Repository/SiteRepositoryInterface.php +++ b/src/Document/Repository/SiteRepositoryInterface.php @@ -15,6 +15,7 @@ */ namespace Pimcore\Bundle\StudioBackendBundle\Document\Repository; + use Pimcore\Model\Site; /** diff --git a/src/Document/Schema/Site.php b/src/Document/Schema/Site.php index 99d53aa5..3866d624 100644 --- a/src/Document/Schema/Site.php +++ b/src/Document/Schema/Site.php @@ -44,8 +44,7 @@ public function __construct( private readonly array $domains, #[Property(description: 'Domain', type: 'string', example: 'main_site')] private readonly string $domain, - ) - { + ) { } public function getId(): int diff --git a/src/Document/Service/SiteService.php b/src/Document/Service/SiteService.php index 29350027..a61de939 100644 --- a/src/Document/Service/SiteService.php +++ b/src/Document/Service/SiteService.php @@ -65,6 +65,6 @@ public function getAvailableSites(ExcludeMainSiteParameter $parameter): array private function getMainSite(): Site { - return new Site(0,1,'/',[],'main_site'); + return new Site(0, 1, '/', [], 'main_site'); } }