From b47c4fb68d8d54ffd84a95a818011feb9212abcf Mon Sep 17 00:00:00 2001 From: lukmzig <30526586+lukmzig@users.noreply.github.com> Date: Wed, 15 Jan 2025 08:50:48 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Exception/Api/SearchException.php | 1 + src/Search/MappedParameter/SimpleSearchParameter.php | 4 +--- src/Search/Repository/SearchRepository.php | 6 ++---- src/Search/Repository/SearchRepositoryInterface.php | 1 + src/Search/Schema/SimpleSearchResult.php | 2 +- src/Search/Service/SearchServiceInterface.php | 1 - 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Exception/Api/SearchException.php b/src/Exception/Api/SearchException.php index 85836ac2..02e65c8e 100644 --- a/src/Exception/Api/SearchException.php +++ b/src/Exception/Api/SearchException.php @@ -18,6 +18,7 @@ use Pimcore\Bundle\StudioBackendBundle\Util\Constant\HttpResponseCodes; use Throwable; +use function sprintf; /** * @internal diff --git a/src/Search/MappedParameter/SimpleSearchParameter.php b/src/Search/MappedParameter/SimpleSearchParameter.php index 3c390a80..8ba9b21b 100644 --- a/src/Search/MappedParameter/SimpleSearchParameter.php +++ b/src/Search/MappedParameter/SimpleSearchParameter.php @@ -14,7 +14,6 @@ * @license http://www.pimcore.org/license GPLv3 and PCL */ - namespace Pimcore\Bundle\StudioBackendBundle\Search\MappedParameter; use Pimcore\Bundle\StudioBackendBundle\MappedParameter\CollectionParameters; @@ -36,5 +35,4 @@ public function getSearchTerm(): ?string { return $this->searchTerm; } - -} \ No newline at end of file +} diff --git a/src/Search/Repository/SearchRepository.php b/src/Search/Repository/SearchRepository.php index 3517cad0..39a9cc1d 100644 --- a/src/Search/Repository/SearchRepository.php +++ b/src/Search/Repository/SearchRepository.php @@ -14,7 +14,6 @@ * @license http://www.pimcore.org/license GPLv3 and PCL */ - namespace Pimcore\Bundle\StudioBackendBundle\Search\Repository; use Pimcore\Bundle\GenericDataIndexBundle\Enum\Search\SortDirection; @@ -39,8 +38,7 @@ public function __construct( private ElementSearchServiceInterface $elementSearchService, private SearchProviderInterface $searchProvider, private SecurityServiceInterface $securityService - ) - { + ) { } /** @@ -66,4 +64,4 @@ public function searchElements(SimpleSearchParameter $parameter): ElementSearchR throw new SearchException('elements', $exception); } } -} \ No newline at end of file +} diff --git a/src/Search/Repository/SearchRepositoryInterface.php b/src/Search/Repository/SearchRepositoryInterface.php index 78d11d51..fa917eee 100644 --- a/src/Search/Repository/SearchRepositoryInterface.php +++ b/src/Search/Repository/SearchRepositoryInterface.php @@ -20,6 +20,7 @@ use Pimcore\Bundle\StudioBackendBundle\Exception\Api\SearchException; use Pimcore\Bundle\StudioBackendBundle\Exception\Api\UserNotFoundException; use Pimcore\Bundle\StudioBackendBundle\Search\MappedParameter\SimpleSearchParameter; + /** * @internal */ diff --git a/src/Search/Schema/SimpleSearchResult.php b/src/Search/Schema/SimpleSearchResult.php index 713e2e00..2828870d 100644 --- a/src/Search/Schema/SimpleSearchResult.php +++ b/src/Search/Schema/SimpleSearchResult.php @@ -45,7 +45,7 @@ public function __construct( private readonly string $path, #[Property(description: 'icon', type: ElementIcon::class)] private readonly ElementIcon $icon, - + ) { } diff --git a/src/Search/Service/SearchServiceInterface.php b/src/Search/Service/SearchServiceInterface.php index 3d0ec0ae..9bfaeb82 100644 --- a/src/Search/Service/SearchServiceInterface.php +++ b/src/Search/Service/SearchServiceInterface.php @@ -16,7 +16,6 @@ namespace Pimcore\Bundle\StudioBackendBundle\Search\Service; -use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException; use Pimcore\Bundle\StudioBackendBundle\Exception\Api\SearchException; use Pimcore\Bundle\StudioBackendBundle\Exception\Api\UserNotFoundException; use Pimcore\Bundle\StudioBackendBundle\Response\Collection;